no decode delegate for this image format

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
yeller

no decode delegate for this image format

Post 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.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: no decode delegate for this image format

Post 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 ?
yeller

Re: no decode delegate for this image format

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

Re: no decode delegate for this image format

Post by teetanne »

Dear yeller,

could you post your config please.

Code: Select all

convert -list configure
TeeTanne
yeller

Re: no decode delegate for this image format

Post 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
yeller

Re: no decode delegate for this image format

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

Re: no decode delegate for this image format

Post 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
yeller

Re: no decode delegate for this image format

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

Re: no decode delegate for this image format

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

Re: no decode delegate for this image format

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

Re: no decode delegate for this image format

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