Best way to stack and color multiple images?
Posted: 2011-04-25T10:30:08-07:00
In the past I have used Illustrator to create icons. Each icon on it's own artboard. To change colors I simply select all of the same color, change it, this applies to all the icons and then I export the artboards to pngs.
What I'd like to do is come up with a way to script this, as well as add in some variables. For example, to make 1 single icon, there are 6 layers, 3 circular lines and 2 gradients and 1 image that sit centered on top of each other. I though I could stack them with composite -geometry center, but that seems to only allow for 2 images at a time, so I'm assuming rather than making 9 lines of composite, there has to be a better way to stack them.
At the same time, I am hoping that I could have the files saved as grayscale SVGs or PNGs so that I could do some type of color overlay or colorization of the layers.
So the methodology would be something like: stack center images 1, 2 and 3 [then] stack and color image 4 with a blue and white gradient [then] stack images 5 and 6 on top that centered.
What is the best way to go about this?
Also, if I put the script into a bash file, would I be able to add variables, like instead of specifying "color this purple" I could put something like "color this $1" and then when I run the script I can assign $1=purple or blue or whatever? Does that make sense?
What I'd like to do is come up with a way to script this, as well as add in some variables. For example, to make 1 single icon, there are 6 layers, 3 circular lines and 2 gradients and 1 image that sit centered on top of each other. I though I could stack them with composite -geometry center, but that seems to only allow for 2 images at a time, so I'm assuming rather than making 9 lines of composite, there has to be a better way to stack them.
At the same time, I am hoping that I could have the files saved as grayscale SVGs or PNGs so that I could do some type of color overlay or colorization of the layers.
So the methodology would be something like: stack center images 1, 2 and 3 [then] stack and color image 4 with a blue and white gradient [then] stack images 5 and 6 on top that centered.
What is the best way to go about this?
Also, if I put the script into a bash file, would I be able to add variables, like instead of specifying "color this purple" I could put something like "color this $1" and then when I run the script I can assign $1=purple or blue or whatever? Does that make sense?