Covert PhotoCD to Jpeg -- weird colour

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
afatac
Posts: 9
Joined: 2009-12-10T03:28:46-07:00
Authentication code: 8675309

Covert PhotoCD to Jpeg -- weird colour

Post by afatac »

I am using ImageMagick-6.5.7-Q16.

I try to convert an image from PhotoCD format[highest resolution] to Jpeg. However, the output image has very weird colour.

The command is
convert test.pcd[5] test.jpg

Converting to TIFF is OK.

Does anyone know what is happening?

A sample pcd file (BlownJohn.pcd) can be downloaded from http://tedfelix.com/PhotoCD/PCDExperiment.html
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Covert PhotoCD to Jpeg -- weird colour

Post by magick »

Add -colorspace RGB to your command line. Or use a color profile with -profile.
afatac
Posts: 9
Joined: 2009-12-10T03:28:46-07:00
Authentication code: 8675309

Re: Covert PhotoCD to Jpeg -- weird colour

Post by afatac »

Hi magick,

Great! It's working now. Thanks :D
afatac
Posts: 9
Joined: 2009-12-10T03:28:46-07:00
Authentication code: 8675309

Re: Covert PhotoCD to Jpeg -- weird colour

Post by afatac »

I notice that whenever I try to convert the highest resolution of PCD, e.g.

Code: Select all

convert -colorspace RGB BlownJohn.pcd[5] test.jpg
I get this error message
convert: Corrupt PCD image, skipping to sync byte `BlownJohn.pcd' @ pcd.c/Decode
Image/301.


However, I still can get the output jpg file and it seems OK. Converting with lower resolution (below 5) does not get the error message.

I wonder what is the error about.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Covert PhotoCD to Jpeg -- weird colour

Post by magick »

The problem you reported is fixed in the latest release of ImageMagick, 6.5.8-4.
afatac
Posts: 9
Joined: 2009-12-10T03:28:46-07:00
Authentication code: 8675309

Re: Covert PhotoCD to Jpeg -- weird colour

Post by afatac »

Yes, the error message is gone. Thanks.

One new question. I came across this site regarding the lost hightlights problem in PhotoCD http://tedfelix.com/PhotoCD/PCDSoftware.html

I have tested with the latest version of ImageMagick and the result is still the same. I tried out the modified DLL supplied at that site by replacing IM_MOD_RL_pcd_.dll in coders subfolder. However, there was error occurred.

May I know how to test that modified PhotoCD DLL (or other PhotoCD DLL) in ImageMagick?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Covert PhotoCD to Jpeg -- weird colour

Post by magick »

The article you cite is out-dated. ImageMagick handles the expanded range of Photo CD images properly. Download and convert http://tedfelix.com/PhotoCD/BlownJohn.pcd to verify:
  • convert 'BlownJohn.pcd[4]' -colorspace sRGB BlownJohn.jpg
afatac
Posts: 9
Joined: 2009-12-10T03:28:46-07:00
Authentication code: 8675309

Re: Covert PhotoCD to Jpeg -- weird colour

Post by afatac »

Is the colorspace suppose to be RGB or sRGB? The output difference is so drastic.

Using RGB gives the blown highlights problem but it is OK for other correctly exposed images.

Using sRGB darkens and saturates the BlownJohn image. For other correctly exposed images, they become very dark.

Please let me know if you like to have another PhotoCD file for testing. I can email one to you.
Post Reply