PSB File handlling error

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Karsten77
Posts: 2
Joined: 2017-08-20T02:13:26-07:00
Authentication code: 1151

PSB File handlling error

Post by Karsten77 » 2017-08-20T02:21:33-07:00

Dear team,

i very often work with very large Photoshop PSB files. Photoshop can't save this as PNG (Also not with plugins like Big PNG or similar), and i need to crop this files when i am done with editing the images.

When i try to crop them with ImageMagick, i got erros like this:

convert file.psb -crop 5000x5000 File.png
convert: InvalidLength `file.psb' @ error/psd.c/ReadPSDChannelRLE/1136.
convert: insufficient image data in file `file.psb' @ error/psd.c/ReadPSDImage/2212.
convert: no images defined `File.png' @ error/convert.c/ConvertImageCommand/3275.

Adobe Photoshop Version: 2017.1.0 20170309.r.207
ImageMagick-7.0.6-7-Q16-x64-dll
Windows 10
The PSB file was reduced to the background layer, its an RGB 8 bit/channel image.

Is it possible to fix? Thank you for any help!

User avatar
magick
Site Admin
Posts: 10690
Joined: 2003-05-31T11:32:55-07:00

Re: PSB File handlling error

Post by magick » 2017-08-20T04:13:03-07:00

We may have an overly aggressive check in our PSD reader. Can you post a URL to your image so we can download it, reproduce the problem, and generate a patch to fix the problem. Thanks.

Karsten77
Posts: 2
Joined: 2017-08-20T02:13:26-07:00
Authentication code: 1151

Re: PSB File handlling error

Post by Karsten77 » 2017-08-20T07:11:40-07:00

Hi, thanks for the fast reply.
Acually it is an 10.5 GB file... it will be hard to send that.
I have some of this large files, and sometimes it works, sometimes not.
When i make 4 PSBs of it (slice 2x2, copy paste in a new file, save as PSB), it also work for every file.
So maybe it's question of the size?
RAM is enough, HDD space also... And it happen not on every of this large files...

User avatar
magick
Site Admin
Posts: 10690
Joined: 2003-05-31T11:32:55-07:00

Re: PSB File handlling error

Post by magick » 2017-08-20T09:02:41-07:00

Size is not the issue. Unless we can download and reproduce the problem, we can't help. You could post the image to one of the free download services such as Dropbox and post the URL.

Kulihrasek
Posts: 3
Joined: 2017-10-11T04:35:45-07:00
Authentication code: 1151

Re: PSB File handlling error

Post by Kulihrasek » 2017-10-11T04:39:08-07:00

Hello there!

Sorry to resurrect the thread, but I am encountering the exact same problem (which led me here). I am trying to create jpeg tiles from a psb image. The file fails to open with an error. To download, press the big yellow button "stáhnout zásilku". The file will be available for a few days.

http://www.uschovna.cz/zasilka/QS8L5IRYXAE83UZ6-7AX/

I have Windows 10, ImageMagick-7.0.7-Q16, which displays this error after these commands:

Command:
C:\Program Files\ImageMagick-7.0.7-Q16>convert.exe c:\pluto\Mars_stack_colorized_64K_V2.psb -resize 32768x16384 c:\output\test.jpg

Error:
convert.exe: InvalidLength `c:\pluto\Mars_stack_colorized_64K_V2.psb' @ error/ps
d.c/ReadPSDChannelRLE/1136.
convert.exe: insufficient image data in file `c:\pluto\Mars_stack_colorized_64K_
V2.psb' @ error/psd.c/ReadPSDImage/2207.
convert.exe: no images defined `c:\output\test.jpg' @ error/convert.c/ConvertIma
geCommand/3275

Kulihrasek
Posts: 3
Joined: 2017-10-11T04:35:45-07:00
Authentication code: 1151

Re: PSB File handlling error

Post by Kulihrasek » 2017-10-18T07:50:35-07:00

Hello,

should I keep the file online or is it no longer necessary. Or maybe I am doing something wrong? I just would like to know if this is something, that can be solved or if I should move on and try to find another way.

Have a nice day and thanks for your time!

User avatar
magick
Site Admin
Posts: 10690
Joined: 2003-05-31T11:32:55-07:00

Re: PSB File handlling error

Post by magick » 2017-10-21T18:20:59-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 @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.

Kulihrasek
Posts: 3
Joined: 2017-10-11T04:35:45-07:00
Authentication code: 1151

Re: PSB File handlling error

Post by Kulihrasek » 2017-10-23T00:13:40-07:00

Awsome! Thank you!! :)

Post Reply