This is what I use to generate the image:
Code: Select all
convert -size 720x576 xc:white -transparent white -depth 2 -font Helvetica-Bold -pointsize 25 -fill red -draw "text 0,312 'Text for button 1 '" -define png:color-type=indexed -colors 2 out.png
Version: ImageMagick 6.3.5 06/04/09 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC
This produces the expected result, a file named out.png with image dimensions 720x576, indexed-alpha 1 layer.
The same command run under Centos V5.4 with
Version: ImageMagick 6.2.8 04/17/08 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
This fails with
convert: Invalid bit depth for RGBA image `out.png'.
Why?
How to fix?
Thanks for any hints
Peter