error/psd.c/ReadPSDChannelRLE/1168

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
TerraView
Posts: 6
Joined: 2018-07-25T16:45:48-07:00
Authentication code: 1152

error/psd.c/ReadPSDChannelRLE/1168

Post by TerraView »

Hi,
I got this error:-
convert: InvalidLength `water6.psb' @ error/psd.c/ReadPSDChannelRLE/1168.
convert: insufficient image data in file `water6.psb' @ error/psd.c/ReadPSDImage/2362.
convert: no images defined `PNG:water6.png' @ error/convert.c/ConvertImageCommand/3275.

When converting a PSB image to PNG
Works for images 3 x 8bit, 24bitRGB, 115200x182400px - png file is 61.592GB
but not 3 x 8bit, 24bitRGB, 176000x1248000px - png file is 62.800GB

Run file which worked on smaller files:-
magick convert %%~nA.psb -define registry:temporary-path=E:\ -limit memory 96GB -define PNG:compression-level=0 PNG:%%~nA.png

Ver. ImageMagick-7.0.8-7-Q8-x64-static.exe Windows

Conversion failed
TerraView
Posts: 6
Joined: 2018-07-25T16:45:48-07:00
Authentication code: 1152

Re: error/psd.c/ReadPSDChannelRLE/1168

Post by TerraView »

Correction
Png file size should be psb.
Working psb file is 61.592GB 3 x 8bit, 24bitRGB, 115200x182400px
Not workin psb file is 62.800GB 3 x 8bit, 24bitRGB, 176000x1248000px
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: error/psd.c/ReadPSDChannelRLE/1168

Post by snibgo »

At 3 bytes per pixel, your small image needs 63 GB, which fits within your 96GB limit.

Your large image needs 659 GB. IM can generally handle this provided you have enough free disk space, but maybe the PSB reader can't.
snibgo's IM pages: im.snibgo.com
TerraView
Posts: 6
Joined: 2018-07-25T16:45:48-07:00
Authentication code: 1152

Re: error/psd.c/ReadPSDChannelRLE/1168

Post by TerraView »

Thanks for your reply
Unfortunately I put too many zeros on the pixels. Should read
Not workin psb file is 62.800GB 3 x 8bit, 24bitRGB, 176000x124800px or 65.9 GB
TerraView
Posts: 6
Joined: 2018-07-25T16:45:48-07:00
Authentication code: 1152

Re: error/psd.c/ReadPSDChannelRLE/1168

Post by TerraView »

Any ideas why this is not working?

I got this error:-
convert: InvalidLength `water6.psb' @ error/psd.c/ReadPSDChannelRLE/1168.
convert: insufficient image data in file `water6.psb' @ error/psd.c/ReadPSDImage/2362.
convert: no images defined `PNG:water6.png' @ error/convert.c/ConvertImageCommand/3275.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: error/psd.c/ReadPSDChannelRLE/1168

Post by magick »

To determine the source of problem and propose a fix, we must first reproduce the problem. Post a URL to your image so we can download it. We'll report back why the exception is thrown and whether we can add a patch to fix the problem.
TerraView
Posts: 6
Joined: 2018-07-25T16:45:48-07:00
Authentication code: 1152

Re: error/psd.c/ReadPSDChannelRLE/1168

Post by TerraView »

Hi Magick,
The psb image is 65GB. I have put it on our FTP site.
I sent you a private mail

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

Re: error/psd.c/ReadPSDChannelRLE/1168

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.
TerraView
Posts: 6
Joined: 2018-07-25T16:45:48-07:00
Authentication code: 1152

Re: error/psd.c/ReadPSDChannelRLE/1168

Post by TerraView »

Thanks
Much appreciated
Post Reply