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.
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
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.
First you have to Define a site in Dreamweaver and make sure to associate
.SVG with Dreamweaver.
Find and Replace or click Ctrl / cmd + F select from "Find in" list
Entire Current Local Site and from search list
Source codeand 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