Code: Select all
convert -debug all '/path/to/file.psb' TIFF64:'/path/to/file.tif'
Code: Select all
2017-06-02T17:13:34+01:00 0:51.480 11.180u 7.0.4 Exception convert[2125]: psd.c/ReadPSDChannelRLE/1123/Exception
InvalidLength `/path/to/file.psb'
2017-06-02T17:13:34+01:00 0:51.480 11.180u 7.0.4 Exception convert[2125]: psd.c/ReadPSDImage/2162/Exception
insufficient image data in file `/path/to/file.psb'
2017-06-02T17:13:34+01:00 0:51.480 11.180u 7.0.4 Resource convert[2125]: resource.c/RelinquishMagickResource/968/Resource
Map: 1.6784GB/6.2565GiB/15.241GiB
https://github.com/ImageMagick/ImageMag ... ders/psd.c
It allows row_size to be 256 larger than length and this is commented as “arbitrary number”
I have hacked about in the psb.c code and outputted that my file has
length 38654
row_size 38381
when it fails
That’s about the limit of my understanding...
Is it possible this 256 number needs to be made larger in the code or am I hitting some kind of sanity check showing my file is violating something?
I have multiple files which exhibit the issue; all saved with Photoshop CS5 (but also lots which work fine)
Unfortunately the smallest file I have which fails is 1.6GB but I can possibly provide this if necessary.