Improper image header. ReadPSDImage/2237

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
usemagi
Posts: 12
Joined: 2019-05-21T01:06:38-07:00
Authentication code: 1152

Improper image header. ReadPSDImage/2237

Post by usemagi »

Hi guys,
I'm trying to do some operations with PSD files, but Magick.Net failes with exception:
improper image header `.....\Indexed256.psd' @ error/psd.c/ReadPSDImage/2237

Tried with Image Magick CLI regular convert operation and encountering same error.

PSD file
https://drive.google.com/file/d/1pVq4CT ... sp=sharing

File is opening in Photoshop and Gimp just fine.

In some earlier version of Image Magick it processed the file without problems.

Do you have any ideas?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Improper image header. ReadPSDImage/2237

Post by fmw42 »

When I open your file in Photoshop, it does not show individual channels for RGB or CMYK. It only shows a color image. That is wrong. So I suspect that is the cause of the error and your file needs to be created properly.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Improper image header. ReadPSDImage/2237

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.
usemagi
Posts: 12
Joined: 2019-05-21T01:06:38-07:00
Authentication code: 1152

Re: Improper image header. ReadPSDImage/2237

Post by usemagi »

Wow, thank you
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Improper image header. ReadPSDImage/2237

Post by dlemstra »

Might be a while before this will be fixed in Magick.NET. Could you open an issue on GitHub also so other people know about this problem?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
usemagi
Posts: 12
Joined: 2019-05-21T01:06:38-07:00
Authentication code: 1152

Re: Improper image header. ReadPSDImage/2237

Post by usemagi »

Post Reply