Invalid bit depth for RGBA image
Posted: 2010-05-23T06:30:20-07:00
I am trying to use convert to generate menu screens for video dvds. These menu screens should be in png format, indexed, 2 colors (transparent and a foreground) with a size of 720x576. If the image has more than 2 colors or is of different size or is not indexed, the menu will not work when playing the dvd.
This is what I use to generate the image:
Under SuSE Linux V8.3 with
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
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