Strange -virtual-pixel transparent and -shadow problem
Posted: 2015-02-25T10:41:43-07:00
I have just been looking at some of my code and I noticed the effect below. You can see at the bottom the corner of the image which is transparent is having an effect on the shadow.
This is the relevant part of the code I am using:
When checking the testSide.png image in Photoshop the background is transparent - do I need to add some sort of alpha setting before creating the shadow?

This is the relevant part of the code I am using:
Code: Select all
exec ( "convert in.jpg ( -thumbnail 1000x1000 -crop 600x800+0+0 +repage ) -crop 100x466+0+100 -fill black -colorize 40% -rotate 90 -pointsize 35 -fill Black -gravity north -annotate +0+20 \"www.rubblewebs.co.uk\" -rotate -90 -virtual-pixel transparent -distort Perspective \" 0,0 0,27 100,0 100,0 100,466 100,466 0,466 0,412 \" testSide.png");
exec ( "convert testSide.png ( +clone -background gray -shadow 80x3-15+15 ) +swap -background none -layers merge +repage test.png");
echo "<img src=\"test.png\">";
