Page 1 of 1

Improper image header. ReadPSDImage/2237

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

Re: Improper image header. ReadPSDImage/2237

Posted: 2019-05-21T09:16:52-07:00
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.

Re: Improper image header. ReadPSDImage/2237

Posted: 2019-05-21T15:22:17-07:00
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.

Re: Improper image header. ReadPSDImage/2237

Posted: 2019-05-22T01:07:08-07:00
by usemagi
Wow, thank you

Re: Improper image header. ReadPSDImage/2237

Posted: 2019-05-25T00:35:14-07:00
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?

Re: Improper image header. ReadPSDImage/2237

Posted: 2019-05-28T05:57:52-07:00
by usemagi