Page 1 of 1

no decode delegate for this image format

Posted: 2007-04-05T11:15:28-07:00
by yeller
Hi,

I am having trouble with the identify utility when I use a .jp2 file. I have tried linking another library into the ./configure command that is supposed to contain the jpeg2000 library, but the library does not seem to appear in the configure settings outputed once ./configure is finished.

Re: no decode delegate for this image format

Posted: 2007-04-05T11:47:57-07:00
by Bonzo
From this page: http://www.imagemagick.org/script/formats.php
JP2 RW JPEG-2000 JP2 File Format Syntax Requires jasper-1.600.0.zip

Is that the problem ?

Re: no decode delegate for this image format

Posted: 2007-04-05T12:12:11-07:00
by yeller
Thanks for your reply,

Actually I tried compiling and installing jasper today, but there were errors when trying to leave directories, and therefore I tried to link to another library. I moved on because I couldn't find any helpful jasper documentation on my errors.

Re: no decode delegate for this image format

Posted: 2007-04-05T13:36:41-07:00
by teetanne
Dear yeller,

could you post your config please.

Code: Select all

convert -list configure
TeeTanne

Re: no decode delegate for this image format

Posted: 2007-04-05T14:11:31-07:00
by yeller
Here you go:

Path: /usr/local/lib/ImageMagick-6.2.5/config/configure.xml

Name Value
-------------------------------------------------------------------------------
CC gcc
CFLAGS -g -O2 -Wall -pthread
CONFIGURE ./configure LIBS=-/home/hi/OpenJPEG/lopenjpeg.a
COPYRIGHT Copyright (C) 1999-2005 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include
CXX g++
CXXFLAGS -pthread
DEFS -DHAVE_CONFIG_H
DISTCHECK_CONFIG_FLAGS LIBS=-/home/hi/OpenJPEG/lopenjpeg.a 'LIBS=-/home/hi/OpenJPEG/lopenjpeg.a'
EXEC-PREFIX /usr/local
HOST i686-pc-linux-gnu
LDFLAGS -L/usr/local/lib -L/usr/lib
LIB_VERSION 0x625
LIB_VERSION_NUMBER 6,2,5,5
LIBS -lMagick -ltiff -ljpeg -lpng -lbz2 -lxml2 -lz -lpthread -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 04/05/07
VERSION 6.2.5
WEBSITE http://www.imagemagick.org

Re: no decode delegate for this image format

Posted: 2007-04-05T14:19:25-07:00
by yeller
The wierd thing is that somehow, on another machine I am able to use the jp2 format - but w/o jasper - I just don't know how to reproduce that on another machine.

Re: no decode delegate for this image format

Posted: 2007-04-05T15:12:06-07:00
by teetanne
Dear yeller,

i can't see support for jpeg2k. Run ./configure --with-jp2=yes.
What say "convert -list configure" on the other maschine ? Which OS do you use ?

TeeTanne

Re: no decode delegate for this image format

Posted: 2007-04-06T06:10:25-07:00
by yeller
I've tried configuring that way, the value that is given for jp2 is "no (failed tests)".

How can I get the JPEG2000 library on this box?

here's the "convert -list configure" on the other machine:

Path: /usr/local/lib/ImageMagick-6.2.5/config/configure.xml

Name Value
-------------------------------------------------------------------------------
CC gcc
CFLAGS -g -O2 -Wall -pthread
CONFIGURE ./configure --with-jp2=yes
COPYRIGHT Copyright (C) 1999-2005 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include
CXX g++
CXXFLAGS -pthread
DEFS -DHAVE_CONFIG_H
DISTCHECK_CONFIG_FLAGS --with-jp2=yes
EXEC-PREFIX /usr/local
HOST i686-pc-linux-gnu
LDFLAGS -L/usr/local/lib -L/usr/X11R6/lib -lfreetype -lz -L/usr/lib
LIB_VERSION 0x625
LIB_VERSION_NUMBER 6,2,5,5
LIBS -lMagick -ltiff -lfreetype -ljpeg -lpng -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 04/04/07
VERSION 6.2.5
WEBSITE http://www.imagemagick.org


I'm running: Linux version 2.6.9-42.0.10.ELsmp, Red Hat 3.4.6-3

Re: no decode delegate for this image format

Posted: 2007-04-09T18:01:58-07:00
by anthony
yeller wrote: I've tried configuring that way, the value that is given for jp2 is "no (failed tests)".

You will then need to go into the config.log and find out what test failed.
Sometimes you also need to try to compile the 'failed' C test program it gives in the log to actually figure out what is going on.
It may be that you just don't have the right path for it to find the library, include headers, or even some library to library dependancy.
Welcome to the job of a system programmer...

Anthony Thyssen ( System Programmer ) <A.Thyssen@griffith.edu.au>
-----------------------------------------------------------------------------
"The trouble with computers, of course,
is that they're very sophisticated idiots. -- Doctor Who, "Robot"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/

Re: no decode delegate for this image format

Posted: 2007-04-10T10:21:52-07:00
by yeller
Howdy, this problem has been solved. I was directed by someone else to get the jasper .rpm and that now allows me to use the jpeg2000 library. Thanks for all your help anyway!

Re: no decode delegate for this image format

Posted: 2007-04-10T17:37:36-07:00
by anthony
In other words the RPM properly intergrates the JPEG2000 into the system directories (while allowing proper upgrades and removals). That means the IM configure can now locate everything properly as they are in the standard system directories. :)

Congradulations.