We use ImageMagick with static libs, 8 bit (based on ImageMagick-6.5.9) in a dll to convert a variety of image formats to jpg for use as thumbnails.
We have a PSD file that ImageMagick will not open via our dll. It also cannot be displayed correctly in imdisplay.exe (6.6.1-Q8). It opens fine in Photoshop CS4. Could you please advise as to what is wrong with the file or if there is a fix needed in IM?
Our client has agreed to share the file with the IM community, please treat the file with confidentiality.
I have posted the file (Image_01D.psd) to our ftp site in this directory: /ImageMagick/
Try using the following credentials:
ftp.northplains.com
User name: publicforum
Password: 543publicforum123
graeme
IM does not open a psd file
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: IM does not open a psd file
It sounds as if you are on Windows. On Windows 7, running a fairly recent IM (6.6.2-4), I can't find any problems. Specifically:
identify says Image_01D.psd has multiple CYMKA images. The comand
make the files imd-0.png, imd-1.png, imd-2.png, imd-3.png. Looking at these with Gimp, the first of these is transparent except for a gray strip on the left edge. The other three are photos of a bed.
"imdisplay Image_01D.psd" shows the same as Gimp on imd-0.png.
I conclude that if you upgrade, all may be okay.
identify says Image_01D.psd has multiple CYMKA images. The comand
Code: Select all
convert Image_01D.psd imd.png
"imdisplay Image_01D.psd" shows the same as Gimp on imd-0.png.
I conclude that if you upgrade, all may be okay.
snibgo's IM pages: im.snibgo.com
Re: IM does not open a psd file
Your image displayed properly with ImageMagick 6.6.2-6, the latest release.
Re: IM does not open a psd file
In 6.5.9 this value is defined:
#define MaxPSDChannels 24
so the sample image (which has 42 channels) was failing in this code:
psd_info.channels=ReadBlobMSBShort(image);
if (psd_info.channels > MaxPSDChannels)
ThrowReaderException(CorruptImageError,"MaximumChannelsExceeded");
In 6.6.3, the maximum channels has been boosted:
#define MaxPSDChannels 56
so the file now opens.
Thanks,
Graeme
#define MaxPSDChannels 24
so the sample image (which has 42 channels) was failing in this code:
psd_info.channels=ReadBlobMSBShort(image);
if (psd_info.channels > MaxPSDChannels)
ThrowReaderException(CorruptImageError,"MaximumChannelsExceeded");
In 6.6.3, the maximum channels has been boosted:
#define MaxPSDChannels 56
so the file now opens.
Thanks,
Graeme