Hi folks. I have this code that I am calling from within a PHP script
(I dont have the time right now to rewrite it to use MagicWand, maybe
later). It works perfectly. I'm taking a full-sized digital image,
creating a medium thumbnail (without watermark), from that creating a
small thumbnail, deleting that small from memory, and then piping the
medium thumbnail out to composite where I add a watermark.
I've been trying to figure out a way to do this all with one single call
to "convert", and not having to pipe anything out to "composite". Is
that even possible? In my readings and research I think it *should* be
-- but so far I havnt been able to get it to work.
Sooo, if anyone could look at my sample code below, and can suggest
alternatives, I'd greatly appreciate it! (I hope the code below doesnt
wrap, I think I got my editor set to not wrap it, sorry if it does)!
THANKS!!! (Eric)
-------------------------------------------------------------------------
/opt/ImageMagick-6.3.4/convert -size 500x500 $1 +strip -filter lanczos
-geometry 500x500 $6 $7 -sharpen 1x3 -quality 85 -write $2 \
\( +clone -size 150x150 +strip -filter lanczos
-geometry 150x150 -quality 85 -write $3 +delete \)
miff:- |\
/opt/ImageMagick-6.3.4/composite -size 500x500 +strip -filter lanczos
-geometry 500x500 -quality 85 -blend 50 -tile $5 - $4
#1 = original file location and name
#2 = medium thumbnail file location and name
#3 = small thumbnail file location and location
#4 = watermark thumbnail file and location
#5 = WM icon (image to use as the watermark)
#6 = rotate1 (if we are rotating, php will set $6 to "-rotate")
#7 = rotate2 (if we are rotating, php will set $7 to degree value)
-------------------------------------------------------------------------
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users