Page 1 of 1

Possible bug when saving an image to PCX format.

Posted: 2008-06-16T12:47:39-07:00
by mongoose54
I have the following code:

Image rotate_frame;

rotate_frame.read("C:\FRAME.bmp");
rotate_frame.rotate(5*180/PI);
rotate_frame.write("C:\ROTATED_FRAME.pcx");

The program saves the file ROTATED_FRAME but when I try to open it with photoshop it says that it is a corrupted file. I removed rotate_frame.rotate(5*180/PI); line and the file is saved and opened normally. Any clues? Probably it is a bug because if i save the image in bmp. it is opened normally. I appreciate any help! Thanks!

Re: Possible bug when saving an image to PCX format.

Posted: 2008-06-16T14:17:12-07:00
by magick
We have a fix for the problem you reported in ImageMagick 6.4.1-9 Beta available sometime tomorrow. Thanks.

Re: Possible bug when saving an image to PCX format.

Posted: 2008-06-17T01:15:22-07:00
by mongoose54
And which files should I overwrite so that the bug is fixed? Bear in my that I use ImageMagick embedded to my Visual Studio C++ project. Thanks a lot for your efforts!Keep up the good job!

Re: Possible bug when saving an image to PCX format.

Posted: 2008-06-17T06:20:14-07:00
by magick
Reset the alpha channel before you write the PCX image (e.g. image.matte(false)). That should fix the problem. Photoshop may not like PCX 32-bit images with an alpha channel. Without the alpha channel, ImageMagick creates standard 24-bit PCX images which Photoshop probably will not complain about.