I have 300 .svg files, all are black, simple vector graphics. Is there any chance to change color from black to white ? Of course mass.
Thanks Ad
I have 300 .svg files, all are black, simple vector graphics. Is there any chance to change color from black to white ? Of course mass.
Thanks Ad
You could use a "sed" script like this (change.sh):
for x in $*
do
sed -e "s/#ED1C24/#ccddee/g" $x > temp$x
mv temp$x $x
done
Run it with "change.sh *.svg"
As mentioned in @hsawire's answer, this can't be "undone" either, so to be safe it's best to copy your original SVG files into another directory for safe-keeping before doing a batch edit on them.
Or use a similar script with your favorite text editor, so long as your editor can be "batched" or "scripted", e.g. hsawires' demo with Dreamweaver.
Be sure your colors in the source SVG are actually expressed in HEX. Sometimes they are represented in other ways; for example the ImageMagick command
convert -size 8x8 -xc:black -bordercolor \#888 -frame 8x8 file.svg
produces a 24x24 SVG file with the pixels expressed as an embedded PNG, and a simple text editor won't work on such SVG files.
Yes sure,
First you have to Define a site in Dreamweaver and make sure to associate .SVG
with Dreamweaver.
Use Find and Replace
or click Ctrl / cmd + F select from "Find in" list Entire Current Local Site
and from search list Source code
and in the Find
text box type the color that you want to replace and in the Replace
text box type the new color that you want. and click Replace All
please note that this action could not undo