Asimov Technologies
J2EE, JEE, PHP
Frank D. Martínez’s Blog
Software & Fun
Welcome to my technical blog. Here you can find my opinions and proposals over many software development things, mainly on open source projects.
Generate different color versions from one single web template with GIMP
Suppose you have developed a beautiful web template in some vectorial program, now you have to cut it in several partial images to make the html/css/image web template. But some times it is difficult to change the colors in a consistent manner and the cut it again color by color to obtain many color variants. Here is a script that can help you to do it in one step.
Example output:
- Copy the file tplcolor.scm into your /usr/share/gimp/2.0/scripts/ directory.
- Run the script in GIMP batch mode from the command line:
- gimp -i -b “(batch-colorize-jpg \”*.jpg\” $i $j $k)” “(batch-colorize-indexed \”*.gif\” $i $j $k)” “(batch-colorize \”*.png\” $i $j $k)” ‘(gimp-quit 0)’
- Or use the bash scrip: gentempl.sh in the same directory of the original template images.
tplcolor.scm script is based on http://www.gimp.org/tutorials/Basic_Batch/
Download the scripts: tplcolor.zip
This site contains personal opinions about many things and does not intend to be normative in any aspect.
Java, J2EE, J2SE, JEE, Are trademarks of Sun Microsystems Inc.


