Unable to identify / convert PSD file

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
Christiaan1991
Posts: 1
Joined: 2017-11-20T07:07:59-07:00
Authentication code: 1152

Unable to identify / convert PSD file

Post by Christiaan1991 »

Hey all,

I tried to google to why I was unable to identify / convert a file, but couldn't find the answer.
Link to the file: http://sendanywhe.re/78DZPMMO

My imagemagick version is (windows / local):
Version: ImageMagick 7.0.1-10 Q16 x64 2016-06-07 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo flif freetype jng jp2 jpeg lcms lqr openexr pangocairo png ps rsvg tiff webp xml zlib

And on my server (LInux / CentOS):
Version: ImageMagick 7.0.7-11 Q16 x86_64 2017-11-11 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo djvu fftw fontconfig fpx freetype gslib jng jpeg lcms ltdl lzma pangocairo png ps tiff webp wmf x xml zlib

And I tested this both on my server (linux) and local (windows).

Commands used were:

Code: Select all

identify -verbose 360341.psd
and this gave the error:
identify: unable to decompress image `360341.psd' @ error/psd.c/ReadPSDChannel/1237.
Can someone help me?


Edit:
Ooh now this is weird - when I do the following command, I do get results back (not what is fully satisfying but.. it's something):

Code: Select all

identify -verbose 360341.psd[0]
So there seems to be an issue with one or multiple layers beyond layer [0], and if so - any way IM is able to fix it?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Unable to identify / convert PSD file

Post by fmw42 »

I get the same error message using IM 7.0.7.11 Q16 HDRI Mac OSX Sierra. I am not sure why you get that message about compression.

ImageMagick does not know how to handle group layers or adjustment layers. Your image has a second possibly adjustment layer. But you can do

Code: Select all

magick identify -verbose 360341.psd[0]
Note in IM 7 you must preface all tools by magick, except for convert. magick replaces convert.

for the first layer, which is the flattened layer and what you would want to use to convert to PNG or some other image format.

So for example, this works fine with no messages.

Code: Select all

magick 360341.psd[0] 360341.png
Post Reply