Page 1 of 1

IM fails on gzipped Postscript image

Posted: 2015-11-21T05:24:52-07:00
by msz59
Trying to get around the nasty bug present in IM 6.7.2 (the latest version in standard CentOS 6 repositories), I installed IM 6.9.2-6 from a third-party repository Les RPM de Remi. Testing it with my scripts I got into a problem with converting/displaying gzipped Postscript images.

Code: Select all

>display im.ps.gz
Error: /undefined in ^Q
Operand stack:
   -1.22178e+17
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   1861   1   3   %oparray_pop   1845   1   3   %oparray_pop   1739   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1156/1684(ro)(G)--   --dict:0/20(G)--   --dict:71/200(L)--
Current allocation mode is local
Current file position is 9
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
Error: /undefined in ^Q
Operand stack:
   -1.22178e+17
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   1861   1   3   %oparray_pop   1845   1   3   %oparray_pop   1739   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1156/1684(ro)(G)--   --dict:0/20(G)--   --dict:71/200(L)--
Current allocation mode is local
Current file position is 9
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
The same image, uncompressed manually, displays correctly. I have not seen any problem with the same image first converted to gif and then gzipped.
I wonder whether it is a real bug in IM or just some problem with the package from a third-party repository. Can anyone reproduce it?
The failure occurs on any ps.gz file I tried. Still, the first image I got into it is available as 50kB im.ps.gz

Re: IM fails on gzipped Postscript image

Posted: 2015-11-21T05:49:59-07:00
by snibgo
Ghostscript is reporting a problem.
msz59 wrote:GPL Ghostscript 8.70
I suggest you try an upgrade to Ghostscript.

Re: IM fails on gzipped Postscript image

Posted: 2015-11-21T15:26:36-07:00
by msz59
Well, as I wrote in the original post. The same Ghostscript has no issues to process the image when it is not compressed. I guess it is IM's job to decompress. Also, with the older IM (and the same Ghostscript), display/convert works fine both on compressed and uncompressed PS file.