3D reflection has black background instead of transparency
Posted: 2012-01-23T06:20:44-07:00
I want to apply the 3D reflection technique to a series of square images. At present, wen I apply it to a png with alpha transparency, the cloned mirror image displays black instead of transparent.
I'm using the following command:
convert original-500x500.png -alpha on \
\( +clone -flip \
-size 500x350 gradient:gray40-black \
-alpha off -compose copyOpacity -composite \
\) -append \
+distort Perspective '0,0,0,0 0,500,0,500 500,0,450,50 500,500,450,450' \
-gravity North -crop 500x1000+0-15\! \
-background transparent -compose Over -flatten 3D_result.png
Here is an example of what is produced:
Is there something I am doing wrong? Or is this a bug?
I'm using the following command:
convert original-500x500.png -alpha on \
\( +clone -flip \
-size 500x350 gradient:gray40-black \
-alpha off -compose copyOpacity -composite \
\) -append \
+distort Perspective '0,0,0,0 0,500,0,500 500,0,450,50 500,500,450,450' \
-gravity North -crop 500x1000+0-15\! \
-background transparent -compose Over -flatten 3D_result.png
Here is an example of what is produced:
Is there something I am doing wrong? Or is this a bug?