PCD image not written correctly

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.
Locked
Jason S
Posts: 103
Joined: 2010-12-14T19:42:12-07:00
Authentication code: 8675308

PCD image not written correctly

Post by Jason S »

I think that IM (as of v6.8.5-4) reads PCD (Photo CD) files correctly, but when it writes them, the colors are all wrong.

Test case:

Code: Select all

convert rose: -resize '768x512!' PCD:rose.pcd
convert rose.pcd rose.png
Actual result: The rose in rose.png is green.
Expected result: Roses are red.

(And no, I don't know why anyone would want to create new PCD files.)

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PCD image not written correctly

Post by fmw42 »

What version of IM and platform.

It works OK for me (IM 6.8.5.5 Q16 Mac OSX Snow Leopard), except it looks a little burry (with display rose.pcd) and has some red border on the left and top and the image is padded with white to fill 768x512. I see a red rose and not green.

convert rose: rose.pcd

identify rose.pcd
rose.pcd PCD 768x512 768x512+0+0 8-bit YCC 788KB 0.010u 0:00.009

Note from the http://www.imagemagick.org/script/formats.php, it says:

PCD RW Photo CD The maximum resolution written is 768x512 pixels since larger images require huffman compression (which is not supported).


Also I do not see any defines at http://www.imagemagick.org/script/comma ... php#define whereby one can set the output resolution. So perhaps it is fixed at 768x512.
Last edited by fmw42 on 2013-05-08T18:06:12-07:00, edited 2 times in total.

Jason S
Posts: 103
Joined: 2010-12-14T19:42:12-07:00
Authentication code: 8675308

Re: PCD image not written correctly

Post by Jason S »

fmw42 wrote:What version of IM and platform
I see the problem with any of the following configurations:
Linux 64-bit, IM 6.8.5-4 Q16
Linux 64-bit, IM 6.5.4-7 Q16
Cygwin 32-bit, IM 6.7.6-3 Q16
Windows 64-bit, IM 6.8.2-3 Q16

Locked