How can I implement complex im code?
Posted: 2007-08-21T11:01:06-07:00
				
				Hello, 
I have had a nightmare trying to get my PHP button generator to work with ImageMagick / exec().
How easily could this be done with Imagick?
Thanks!
			I have had a nightmare trying to get my PHP button generator to work with ImageMagick / exec().
How easily could this be done with Imagick?
Thanks!
Code: Select all
convert -background transparent -fill transparent \
           -font 'tahomabd.ttf' -pointsize 13 label:'Open Houese' \
           -format 'viewbox 0 0 %[fx:w+7] %[fx:h+7]  \
 fill red roundRectangle 1,1 %[fx:w+5] %[fx:h+5] \
 5,5' \
            info: > rounded_corner.mvg
convert -background transparent +antialias rounded_corner.mvg mask.png
convert mask.png \
            \( +clone -fx A +matte  -blur 0x21  -shade 118x0 -normalize \
               -sigmoidal-contrast 16,60% -evaluate Multiply .4 \
               -roll +5+10 +clone -compose Screen -composite \) \
            -compose In  -composite  gel.png
convert gel.png \
            \( +clone -fx A  +matte -blur 0x2  -shade 0x90 -normalize \
               -blur 0x2  -negate -evaluate multiply .4 -negate -roll -.5-1 \
               +clone  -compose Multiply -composite \) \
            -compose In  -composite  gel2.png
convert gel2.png \
            -font 'tahomabd.ttf' -pointsize 11  -fill white +antialias  \
            -gravity Center  -annotate 0 "Open House"  -trim -repage 0x0+3+3 \
            \( +clone -background '#111111' -shadow 20x3+3+3 \) +swap \
            -background none  -flatten gel_button.png