Bug 690361 - unable to decode JPX image data
Summary: unable to decode JPX image data
Status: RESOLVED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 8.54
Hardware: Other AIX
: P4 normal
Assignee: Ralph Giles
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 09:43 UTC by ROPERT Stephane
Modified: 2009-03-27 07:20 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
D5F84E0B1B60EBA7.mgd.pdf contening JPX Image (32.44 KB, application/pdf)
2009-03-27 07:01 UTC, ROPERT Stephane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ROPERT Stephane 2009-03-26 09:43:01 UTC
When trying to convert a 1.5 pdf file created by "pixelion" to jpeg file, this 
error message appears :

AFPL Ghostscript 8.54 (2006-05-17)
Copyright (C) 2005 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 4.
Page 1
unable to decode JPX image data.

   **** Warning: File has insufficient data for an image.
Error: /typecheck in --closefile--
Operand stack:
   --dict:5/5(L)--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   
false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   
3   %oparray_pop   --nostringval--   --nostringval--   2   1   4   --
nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--   
false   1   %stopped_push   --nostringval--   --nostringval--   --nostringval--
   %array_continue   --nostringval--   false   1   %stopped_push   --
nostringval--   %loop_continue   --nostringval--   34607
Dictionary stack:
   --dict:1128/1686(ro)(G)--   --dict:2/20(G)--   --dict:75/200(L)--   --
dict:75/200(L)--   --dict:105/127(ro)(G)--   --dict:253/347(ro)(G)--   --
dict:21/24(L)--   --dict:4/6(L)--   --dict:20/20(L)--   --dict:1/1(ro)(G)--
Current allocation mode is local
Last OS error: 22
AFPL Ghostscript 8.54: Unrecoverable error, exit code 1
Comment 1 Marcos H. Woehrmann 2009-03-26 09:48:57 UTC
Please attach a sample file and/or try a newer version of Ghostscript (8.54 is several years old and we've 
made many improvements in jpx decoding).
Comment 2 Alex Cherepanov 2009-03-26 10:17:08 UTC
The stack corruption '/typecheck in --closefile--' after failed decoding
has been fixed long ago. JPX decoding issue cannot be solved without a
sample file.
Comment 3 ROPERT Stephane 2009-03-27 07:01:08 UTC
Created attachment 4872 [details]
D5F84E0B1B60EBA7.mgd.pdf contening JPX Image

Pdf file with "unable to decode JPX image data." issue when trying to convert
it to jpeg file with this Ghostscript command :

gs -dNOPAUSE -dSAFER -dBATCH -sDEVICE=jpeggray -dJPEGQ=100 -dFIXEDMEDIA
-sPAPERSIZE=a4 -dNORANGEPAGESIZE -r285x285
-sOutputFile=D5F84E0B1B60EBA7.mgd%02d.jpg D5F84E0B1B60EBA7.mgd.pdf
Comment 4 Ken Sharp 2009-03-27 07:20:29 UTC
Works for me with the current HEAD revision.

I would suggest upgrading to the current release 8.64.