issues on install from RPM

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: issues on install from RPM

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: issues on install from RPM

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
jemils

Re: issues on install from RPM

Post 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.
jemils

Re: issues on install from RPM

Post 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 :)
Post Reply