Convert all images to one color command?

I know this is possible with imagemagic app command
I have a folder with 2100 .svg files I want to convert to RGBA: c0c0c0

any thoughts?

1 Like

A sed command should work, since .svg files are text based, not raster. You could use a tool for plotting .xml files, as well.
I'd have to look up the name of the tool...
In the meantime:

Ok, and tool: xsltproc

3 Likes

Making a script of

for x in $*
do
sed -e "s/#CURRENT COLOR/#WANTED COLOR/g" $x > temp$x
mv temp$x $x
done

Did the tricks.

1 Like

I can't recall how I should ran this script (embarrassed). :zipper_mouth_face:
Apparently I'm getting old.

1 Like

You forgot to write comments! :smiley:

Yeah, I forgot to write ... sigh ... comments :smiley:
I know how to execute script files, but there was more to it and I can't remember.

2 Likes

I recall it now

sh change.sh *.svg
1 Like