[magick-users] Help with syntax

Alessandro Polverini alex at nibbles.it
Fri Feb 22 09:41:52 PST 2008


Hello,
I'm starting using imagemagick and after a lot of tests I finally 
managed to reach the goal I needed.

But I'm creating 2 intermediate files and I would like to know if it's 
possible to "optimize" the steps I do and maybe avoid the temporary 
images: I'm getting a lot of difficulties to understand the command line 
syntax!

These are the steps I actually do, given as input a color and two 
images: src1.jpg and src2.png (this one with transparency)

1) create an image of the same size of src1 filled with color:
convert src1.jpg +matte -fill "#RRGGBB" -colorize 100% tmp1.gif

2) blend the two :
composite -compose multiply tmp1.gif src1.jpg tmp2.png

3) and finally put all together
composite -compose atop src2.png tmp2.png output.jpg

The thing works fine but I would be pleased to know if it's possible to 
eliminate one or also both the steps so to optimize things and beginning 
to learn advanced use of the command line.

Thanks for any help,
Alex



More information about the Magick-users mailing list