Inkscape.org
Beginners' Questions Perform UNION ALL in bulk to all SVG files in folder
  1. #1
    Marina Matic Marina Matic @Mayday67

    Hi,

    I have 500ish SVG files with simple black drawings but I just realized they are all treated as individual objects when cutting, not as a group. I need to perform union action for each file.

    Is there a code line I can use in CMD with Potrace or Imagemagick or Inkscape alone that will be able to run this action in bulk, and perform union to all shapes in all files?
    Select all in file - Path - Union.

    I can also edit them in Notepad++ by replacing function if I knew what code line needs to be replaced.

    Thank you!

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    The Developers can help with command line operations: https://chat.inkscape.org/channel/team_devel

  3. #3
    inklinea inklinea @inklinea⛰️
    🏆*

    In the folder containing the svgs.

    inkscape --actions="select-all;path-union;export-do" *

    for every filename.svg it will produce filename_out.svg

  4. #4
    Marina Matic Marina Matic @Mayday67

    THANK YOU!!!

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Perform UNION ALL in bulk to all SVG files in folder