Page 1 of 1

Re: issues on install from RPM

Posted: 2008-09-23T18:19:41-07:00
by anthony
Do you have JP2 or JPX using the Jpeg-2000 library? Your input image may be using that format which is incompatible with the older JPEG format.

Re: issues on install from RPM

Posted: 2008-09-23T18:21:59-07:00
by anthony
PS I have JPX but...

Code: Select all

   convert rose: rose.jpx
   convert: unable to encode image file `rose.jpx'.
A zero sized rose.jpx file was created.

however jp2 works prefectly! Whats the difference between these two formats, as both are listed as JPEG-2000

Re: issues on install from RPM

Posted: 2010-03-23T02:44:45-07:00
by jemils
anthony wrote:PS I have JPX but...

Code: Select all

   convert rose: rose.jpx
   convert: unable to encode image file `rose.jpx'.
A zero sized rose.jpx file was created.

however jp2 works prefectly! Whats the difference between these two formats, as both are listed as JPEG-2000
Somebody have solution for this? I have the same problem. I tried to reinstall Jasper(1.900.1), JPEG2000(v8), ImageMagick(6.5.0-10), GhostScript(8.70) but no result.

identify -list format | grep JPEG

JNG* PNG rw- JPEG Network Graphics
JP2* JP2 rw- JPEG-2000 File Format Syntax
JPC* JPC rw- JPEG-2000 Code Stream Syntax
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format
JPX* JPX rw- JPEG-2000 File Format Syntax
PGX* PGX r-- JPEG-2000 VM Format
PJPEG* JPEG rw- Progessive Joint Photographic Experts Group JFIF

JPX format is important for pdf convert to jpeg images after command:
convert -colorspace RGB -density 130 -limit memory 1mb -limit map 1mb '.$uploadfile.' '.str_replace('.pdf','.jpeg',$uploadfile).' 2>&1'

but return error:
jasper (code 0) error: cannot decode code stream unable to decode JPX image data. **** Warning: File has insufficient data for an image. ****
This file had errors that were repaired or ignored. **** The file was produced by: **** >>>> Adobe PDF Library 9.0 <<<<
**** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

in result I get jpegs without some images...

Please somebody help.

Re: issues on install from RPM

Posted: 2010-03-30T23:56:22-07:00
by jemils
jemils wrote:
anthony wrote:PS I have JPX but...

Code: Select all

   convert rose: rose.jpx
   convert: unable to encode image file `rose.jpx'.
A zero sized rose.jpx file was created.

however jp2 works prefectly! Whats the difference between these two formats, as both are listed as JPEG-2000
Somebody have solution for this? I have the same problem. I tried to reinstall Jasper(1.900.1), JPEG2000(v8), ImageMagick(6.5.0-10), GhostScript(8.70) but no result.

identify -list format | grep JPEG

JNG* PNG rw- JPEG Network Graphics
JP2* JP2 rw- JPEG-2000 File Format Syntax
JPC* JPC rw- JPEG-2000 Code Stream Syntax
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format
JPX* JPX rw- JPEG-2000 File Format Syntax
PGX* PGX r-- JPEG-2000 VM Format
PJPEG* JPEG rw- Progessive Joint Photographic Experts Group JFIF

JPX format is important for pdf convert to jpeg images after command:
convert -colorspace RGB -density 130 -limit memory 1mb -limit map 1mb '.$uploadfile.' '.str_replace('.pdf','.jpeg',$uploadfile).' 2>&1'

but return error:
jasper (code 0) error: cannot decode code stream unable to decode JPX image data. **** Warning: File has insufficient data for an image. ****
This file had errors that were repaired or ignored. **** The file was produced by: **** >>>> Adobe PDF Library 9.0 <<<<
**** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.

in result I get jpegs without some images...

Please somebody help.
I resolve this problem.

First of all solution for "unable to encode image file `rose.jpx'":
1. Need to uninstall imagemagick
# make uninstall
2. Install imagemagick
# ./configure
# make
# make install
3. Convert rose.jpx
# convert rose: rose.jpx
create file rose.jpx - size 64.0 KB

Solution for "jasper (code 0) error: cannot decode code stream unable to decode JPX image data":
When I change php file permission to 0777 problem disapear :)