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?
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?
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
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.
I can't recall how I should ran this script (embarrassed).
Apparently I'm getting old.
You forgot to write comments!
Yeah, I forgot to write ... sigh ... comments
I know how to execute script files, but there was more to it and I can't remember.
I recall it now
sh change.sh *.svg