Page 1 of 1

Cannot read properly simple psd file with ImageMagick 6.9.1-7

Posted: 2015-07-08T07:41:33-07:00
by 246246
Input image is here: https://www.dropbox.com/s/swc28z9jtrcey ... o.psd?dl=0
It should show text "Hello!" on transparent background. The file can be read properly with Gimp 2.8.10 and Photoshop CS6.

Here shows the warnings from Windows command:

Code: Select all

C:>identify -version
Version: ImageMagick 6.9.1--7 Q16 x86 2015-07-04 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo freetype jng jp2 jpeg lcms lqr openexr pangoca
iro png ps rsvg tiff webp xml zlib

C:>identify -verbose Hello.psd | find /I "warning"
identify.exe: CompressionNotSupported '8239' @ warning/psd.c/ReadPSDChannel/1098.
identify.exe: CompressionNotSupported '15420' @ warning/psd.c/ReadPSDChannel/1098.
identify.exe: CompressionNotSupported '65280' @ warning/psd.c/ReadPSDChannel/1098.
There are no warning/error output with the same command above from IM 6.9.1-6 on Windows and 6.9.1-3 in Cygwin - using grep instead, both of which show properly the image with display command.

Best wishes,

Re: Cannot read properly simple psd file with ImageMagick 6.9.1-7

Posted: 2015-07-08T09:01:49-07:00
by fmw42
Those are only warning messages. However, the image is corrupted when displayed in Imagemagick 6.9.1.7. It does open fine in PS (CS). If I save it from PS without any changes, then it displays fine in IM. Did you save with maximum compatibility?

Re: Cannot read properly simple psd file with ImageMagick 6.9.1-7

Posted: 2015-07-08T09:18:14-07:00
by 246246
Thank you for your reply. Oddly, It corrupts like the following:

6.9.1-6 result of display
Image
6.9.1-7 result of display
Image

As you said, when I resave it as another file with PS (with maximum compatibility option), it can be read fine also with 6.9.1-7, but still output the same warnings (that are not produced when using IM 6.9.1-6).

Re: Cannot read properly simple psd file with ImageMagick 6.9.1-7

Posted: 2015-07-08T11:05:42-07:00
by fmw42
The warnings do not mean anything significant to the processing of the image. As long as they are warnings and not errors. I do not know what has been upgraded in I 6.9.1.7 from 6.9.1.6. The IM developers would have to comment. But PSD and TIFF have been improved to add new features in the last few releases. See the changelog at http://www.imagemagick.org/script/changelog.php, which seems to be missing the 6.9.1.7 changes.

Re: Cannot read properly simple psd file with ImageMagick 6.9.1-7

Posted: 2015-07-08T18:16:45-07:00
by 246246
At a glance, something has changed to in reading layers.
http://fossies.org/diffs/ImageMagick/6. ... -diff.html
Removing call of DiscardBlobBytes() might cause this problem, but I have no debugging environment now. So it's just a guess.

Re: Cannot read properly simple psd file with ImageMagick 6.9.1-7

Posted: 2015-07-08T19:25:12-07:00
by fmw42
I see nothing in the changelog now regarding changes to PSD files. But changes could have been made and not commented in the changelog or were a ramification of some other changes elsewhere. I think the IM developers will need to comment and check this out.

Re: Cannot read properly simple psd file with ImageMagick 6.9.1-7

Posted: 2015-07-08T21:47:44-07:00
by dlemstra
This is indeed a problem with the PSD reader and it will be resolved in 6.9.1-8. Its happening due to the change of 'if (length > 0)'. This has been fixed in the latest beta.