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