Hi again,
I've updated my ImageMagick version to ImageMagick 6.8.7-0 2013-10-05 Q16.
Although I do get two images in the output image now, the distort method isn't properly applied for the second source image.
To make things easier to explain I've changed the coordinates a bit and added some relevant images.
My source images (red and blue) (100x100)
Distortion only using the first input image.
Code: Select all
convert \
-define png:color-type=6 \
-mattecolor transparent \
-background transparent \
-extent 560x316 \
-virtual-pixel transparent \
\( assetA.png -distort BilinearForward 0,0,20,25,0,100,25,150,100,0,550,25,100,100,540,110 \) \
-flatten \
outputA.png
output:
The same goes for the second input image with slightly different coordinates.
Code: Select all
convert \
-define png:color-type=6 \
-mattecolor transparent \
-background transparent \
-extent 560x316 \
-virtual-pixel transparent \
\( assetB.png -distort BilinearForward 0,0,20,200,0,100,25,305,100,0,550,210,100,100,540,300 \) \
-flatten \
outputB.png
output:
Now when I try to combine the two in ways discussed above, something odd happens. The distortion on the second source image isn't applied.
Code: Select all
convert \
-define png:color-type=6 \
-mattecolor transparent \
-background transparent \
-extent 560x316 \
-virtual-pixel transparent \
\( assetA.png -distort BilinearForward 0,0,20,25,0,100,25,150,100,0,550,25,100,100,540,110 \) \
\( assetB.png -distort BilinearForward 0,0,20,200,0,100,25,305,100,0,550,210,100,100,540,300 \) \
-flatten \
outputAB.png
output:
The following is what I'd expect to see: