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 » 2019-05-21T01:15:57-07:00

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: 25664
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Improper image header. ReadPSDImage/2237

Post by fmw42 » 2019-05-21T09:16:52-07:00

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: 11078
Joined: 2003-05-31T11:32:55-07:00

Re: Improper image header. ReadPSDImage/2237

Post by magick » 2019-05-21T15:22:17-07:00

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 » 2019-05-22T01:07:08-07:00

Wow, thank you

User avatar
dlemstra
Posts: 1578
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Improper image header. ReadPSDImage/2237

Post by dlemstra » 2019-05-25T00:35:14-07:00

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 » 2019-05-28T05:57:52-07:00


Post Reply