[magick-users] convert TGA to PNG problem

p.willis at telus.net p.willis at telus.net
Mon Jul 10 13:42:59 PDT 2006


Quoting p.willis at telus.net:

> 
> Hello,
> 
> I am having a problem converting 24 bit TGA images to PNG using
> imagemagick 'convert', version 6.2.7 .
> 
> Using the following command:
> 
> convert image.tga image.png
> 
> This produces four png files named:
> 
> image-0.png
> image-1.png
> image-2.png
> image-3.png
> 
> The first image is a png with a rendering of the original
> tga file but there is horizontal striping where colors end and black begins.
> 
> The last three images are valid png images but are all black.
> 
> Am I missing a switch or is TGA to PNG conversion broken?
> 
> Thanks for any insights,
> 
> P

As an addendum to this I would like to add that using the flag:

-depth 24

improves the output somewhat. The first of the 4 output
files (image-0.png) is rendered correctly. 

I still get 4 files numbered from 0-4.
The last three files remain black.

P



More information about the Magick-users mailing list