Cannot write 16-colour PCX files

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Malvineous
Posts: 5
Joined: 2010-07-10T21:25:42-07:00
Authentication code: 8675308

Cannot write 16-colour PCX files

Post by Malvineous »

Hi,

I'm trying to edit a 16-colour (4bpp) PCX file, but ImageMagick always seems to convert it to 256-colour (8bpp).

Code: Select all

$ identify input.pcx
input.pcx PCX 320x200 320x200+0+0 8-bit PseudoClass 16c 26KB 0.000u 0:00.000
$ convert input.pcx -depth 4 out.pcx && identify out.pcx
out.pcx PCX 320x200 320x200+0+0 8-bit PseudoClass 256c 22.6KB 0.010u 0:00.010
$ convert input.pcx -depth 4 out.png && identify out.png
out.png PNG 320x200 320x200+0+0 8-bit PseudoClass 16c 4.99KB 0.000u 0:00.000
It seems to be able to write 4bpp PNG images correctly, but not 4bpp PCX images. Am I doing something wrong or is the PCX format not fully supported?
Post Reply