Cropped PNG is blank.
Posted: 2011-02-15T13:03:46-07:00
I create a PNG.
The result is a PNG image 1680x1050 with black text on a transparent background.
Then I crop the image.
What I expect to get is a 500x500 PNG that contains the middle 500x500 pixels of happybirthday.png. What I actually get is a 500x500 PNG that is entirely transparent.
Can anyone explain why I get an entirely transparent image and how to get the expect result?
Version: ImageMagick 6.6.7-1 2011-02-05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP OpenCL
Installed using MacPorts on
ProductName: Mac OS X
ProductVersion: 10.6.6
BuildVersion: 10J567
Code: Select all
$ convert -background transparent -fill black -gravity center -size 1680x1050 -font Arial-Bold caption:"HAPPY\nBIRTHDAY" happybirthday.png
Then I crop the image.
Code: Select all
$ convert happybirthday.png -gravity center -crop 500x500+0+0 +repage happyfoo.png
Can anyone explain why I get an entirely transparent image and how to get the expect result?
Version: ImageMagick 6.6.7-1 2011-02-05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP OpenCL
Installed using MacPorts on
ProductName: Mac OS X
ProductVersion: 10.6.6
BuildVersion: 10J567