bobrosoft wrote:My command looks like this
Code: Select all
convert -virtual-pixel transparent \( files/patterns/sity/./main.png \)
\( /tmp/phpSmJ5D3 -matte +distort Perspective "0,0 283,230 0,480 283,362 480,480 318,350 480,0 318,187" \)
\( /tmp/phpSmJ5D3 -matte +distort Perspective "0,0 453,164 0,480 467,307 480,480 526,279 480,0 501,102" -compose color_dodge \)
\( /tmp/phpSmJ5D3 -swirl 90 -matte +distort Perspective "0,0 501,102 0,480 526,290 480,480 691,240 480,0 639,31" -compose multiply \)
-background white -layers merge -crop 700x465 +repage ./1.jpg
and everything is fine, but only last -compose (e.g. -compose multiply) apply to merged layers in resultant image.
How can I make all these -compose work?
-layers merge +repage should crop to minimum size so that there is no border, so you may not need -crop 700x465
If your main.png is the background larger than the others, you may not need -background white
I don't understand this step:
\( /tmp/phpSmJ5D3 -swirl 90 -matte +distort Perspective "0,0 501,102 0,480 526,290 480,480 691,240 480,0 639,31" -compose multiply \)
You need two images to do a -compose multiply and need to follow with a -composite.
Likewise the previous step ending in -compose color_dodge.
I don't think you can do -compose xxx without -composite and a second image.
See
http://www.imagemagick.org/Usage/compose/#compose