Wrong colors after converting of some *.pct (PICT) images.

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
wasow
Posts: 5
Joined: 2010-09-29T07:22:28-07:00
Authentication code: 8675308

Wrong colors after converting of some *.pct (PICT) images.

Post by wasow »

When I try to convert such *.pct images to *.jpg (or to another format):

Code: Select all

$ identify -verbose PICT.pct | grep -ie format -e colorspace
  Format: PICT (Apple Macintosh QuickDraw/PICT)
  Colorspace: RGB

$ convert -size 3072x2048 -quality 100 -colorspace RGB PICT.pct PICT.JPG
I get image with strange (wrong) colors. [http://narod.ru/disk/25469639000/PICT.JPG.html]
From the most of known image converters and viewers I've found only two wich can correct view/convert these images: ImageConverter Plus (but in small resolution) and QuickTime (but can't convert).

Old version of ImageMagick's Converter (6.3.4 05/11/07 under wine) is more successful but with color bads. [http://narod.ru/disk/25470983000/PICT_old.JPG.html]

I guess the file [http://narod.ru/disk/25468836000/PICT.pct.html] is not corrupted, because I have hundred files with these symptoms.

Are there some workarounds?

Thanks in advance.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Wrong colors after converting of some *.pct (PICT) image

Post by fmw42 »

I downloaded your PICT.pct file and looked at its verbose info, which looks fine. I displayed your image in Mac PREVIEW and it looks reasonable (mostly yellow-grayish). But when I display it in IM it looks very green. I did not see any profiles imbedded in the data, but I am not an expert on PICT files.

I then did

convert PICT.pct PICT.jpg

and got the same green image when displaying in either IM or Preview.

So something odd is going on with IM reading these files or Preview knows something that IM does not.

Hopefully someone else might be able to shed more light on this.
wasow
Posts: 5
Joined: 2010-09-29T07:22:28-07:00
Authentication code: 8675308

Re: Wrong colors after converting of some *.pct (PICT) image

Post by wasow »

Thanks for you reply.
fmw42 wrote:Hopefully someone else might be able to shed more light on this.
Hope so!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Wrong colors after converting of some *.pct (PICT) image

Post by fmw42 »

Post this problem to the Bugs forum and put a link back to this topic
wasow
Posts: 5
Joined: 2010-09-29T07:22:28-07:00
Authentication code: 8675308

Re: Wrong colors after converting of some *.pct (PICT) image

Post by wasow »

fmw42 wrote:Post this problem to the Bugs forum and put a link back to this topic
Done: viewtopic.php?f=3&t=17202
Post Reply