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 » 2018-07-25T17:09:15-07:00

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 » 2018-07-25T18:20:49-07:00

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: 10823
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: error/psd.c/ReadPSDChannelRLE/1168

Post by snibgo » 2018-07-25T19:04:40-07:00

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 » 2018-07-26T14:47:14-07:00

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 » 2018-07-29T13:17:08-07:00

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

Re: error/psd.c/ReadPSDChannelRLE/1168

Post by magick » 2018-07-29T15:45:51-07:00

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 » 2018-07-31T13:44:56-07:00

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

Re: error/psd.c/ReadPSDChannelRLE/1168

Post by magick » 2018-08-02T10:19:05-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.

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

Re: error/psd.c/ReadPSDChannelRLE/1168

Post by TerraView » 2018-08-06T19:07:34-07:00

Thanks
Much appreciated

Post Reply