Hello all,

I would like to find an automatic solution for the following workflow.


or, if you will,

open or import file (eg. eps format);
for (all colors in drawing)
{
    select all paths of the current color;
    perform union on selected paths;
}
export drawing;

I suppose there should be a solution along the lines of

inkscape -f input.eps --verb=EditDeselect --select=allPathsOfSameColors --verb=SelectionUnion --export-simple-svg

However, I have no clue how to go about selecting all paths of the same color or how to iterate over all colors.

Any help or pointers would be very much appreciated.

Cheers
Götz