ImageMagic creates PCX file with randomly shifted palette

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
giner

ImageMagic creates PCX file with randomly shifted palette

Post by giner »

I'm not sure this is a bug but it's not proper behavior.

On converting image to 256-colors grayscale (and saving to PCX) ImageMagic creates file with randomly shifted palette.
For example: 0 - RGB(100,100,100), 1 - RGB(101,102,103), ...155 - RGB(255,255,255), 156 - RGB(0,0,0), ... 254 - RGB(98,98,98), 255 - RGB(99,99,99)
Shift could be different for each file.

We need to convert our images into (PCX) files with fixed uniform 256-colors grayscale palette:
0 - RGB(0,0,0), 1 - RGB(1,1,1), ... 254 - RGB(254,254,254), 255 - RGB(255,255,255)

How it could be achived with using of ImageMagic?
Preferably combined with no-RLE compression in PCX file.

It looks similar to this one: http://studio.imagemagick.org/pipermail ... 15683.html
Post Reply