Page 1 of 1

Delegate installed for JPEG but complains on '.jpeg' file?

Posted: 2009-08-26T15:04:49-07:00
by Julian
Hi all I'm using ImageMagick 6.4.7 and I'm getting some curious output:

.identify.bin: no decode delegate for this image format `/.../pony.jpg' @ constitute.c/ReadImage/526.
bash-3.2$ convert -list configure

Path: /Applications/Rails/common/lib/ImageMagick-6.4.7/config/configure.xml

Name Value
-------------------------------------------------------------------------------
...
DELEGATES bzlib freetype jpeg png wmf zlib
...

Any idea why it things it can't find a delegate for jpeg when it's listed? Is it possible for some reason although it can find a list of delegates, where it actually calls the delegates is configured somewhere else -- and that might be wrong?

thanks!

Re: Delegate installed for JPEG but complains on '.jpeg' file?

Posted: 2009-08-26T15:24:51-07:00
by fmw42
what is your command line that gives the error?

Can you do

convert logo: logo.jpg

or does that give errors?

Re: Delegate installed for JPEG but complains on '.jpeg' file?

Posted: 2009-08-26T21:37:01-07:00
by Julian
fmw42 wrote:what is your command line that gives the error?

Can you do

convert logo: logo.jpg

or does that give errors?
Yes that gives the same error. Here's the exact output (% is the command prompt, this is under Mac OS Leopard with Image Magick 6.4.7)

% ls pony.jpeg
pony.jpeg

% convert pony.jpeg pony.png
.convert.bin: no decode delegate for this image format `pony.jpeg' @ constitute.c/ReadImage/526.
.convert.bin: missing an image filename `pony.png' @ convert.c/ConvertImageCommand/2732.

Re: Delegate installed for JPEG but complains on '.jpeg' file?

Posted: 2009-08-26T21:56:33-07:00
by fmw42
appears that jpeglib is not installed correctly. or perhaps your pony.jpeg is corrupt in some way. can you provide a link to that image.

How did you install IM.

I am using IM 6.5.5-2 Q16 on Mac OSX Tiger. I installed manually. No MacPorts and NO FINK.

If you installed IM with either, then you need to install the jpeglib also with MacPorts or Fink as it needs to put it in the same place as where it installed IM, which is in a special directory for each of them.

If you installed IM from source, then it should be in /usr/local/bin. You can cd there an do an ls and see convert listed there. You should also see all the delegates there. On my system, for example, I have

cd /usr/local/bin
ls -al
...
-rwxr-xr-x 1 root wheel 1147444 Jan 17 2008 jasper
-rwxr-xr-x 1 root wheel 203144 Jan 17 2008 jpegicc
-rwxr-xr-x 1 root wheel 107316 Jan 11 2008 jpegtran

To see if you have jpg installed, then type

convert -list configure

The other issue is if your pony.jpeg is JPEG2000, then you need jasper installed

see http://www.imagemagick.org/download/delegates/

Re: Delegate installed for JPEG but complains on '.jpeg' file?

Posted: 2009-08-26T22:12:24-07:00
by Julian
Hi -- thanks for your speedy response! ImageMagick came with Bitnami RubyStack and is designed to be 'self contained'. It seems a little too 'self-contained'. I've x-posted this on the bitnami forums (version 1.5.4)

setenv.sh:

Code: Select all

##### IMAGEMAGICK ENV #####
MAGICK_HOME="/Applications/Rails/common"
export MAGICK_HOME
MAGICK_CONFIGURE_PATH="/Applications/Rails/common/lib/ImageMagick-6.4.7/config:/Applications/Rails/common/share/ImageMagick-6.4.7/config"
export MAGICK_CONFIGURE_PATH
MAGICK_CODER_MODULE_PATH="/Applications/Rails/common/lib/ImageMagick-6.4.7/modules-Q16/coders"
export MAGICK_CODER_MODULE_PATH
Also, I don't seem to be able to convert any images. Here's my session verbatim:

Code: Select all

bash-3.2$ which convert
/Applications/Rails/common/bin/convert

bash-3.2$ convert gif-orig-pony.gif pony-from-gif.jpg
.convert.bin: no decode delegate for this image format `gif-orig-pony.gif' @ constitute.c/ReadImage/526.
.convert.bin: missing an image filename `pony-from-gif.jpg' @ convert.c/ConvertImageCommand/2732.
bash-3.2$ convert -list configure

Path: /Applications/Rails/common/lib/ImageMagick-6.4.7/config/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99
CFLAGS        -I/Applications/Rails/common/include -Wall -W -D_THREAD_SAFE
CONFIGURE     ./configure  '--prefix=/Applications/Rails/ImageMagick' '--with-perl=no' '--with-jpeg=yes' 'CC=gcc' 'CFLAGS=-I/Applications/Rails/common/include' 'LDFLAGS=-L/Applications/Rails/common/lib' 'CPPFLAGS=-I/Applications/Rails/common/include '
COPYRIGHT     Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS      -I/Applications/Rails/common/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -Wall -W -D_THREAD_SAFE
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib freetype jpeg png wmf zlib
DISTCHECK_CONFIG_FLAGS 'CC=gcc' 'CFLAGS=-I/Applications/Rails/common/include' 'CPPFLAGS=-I/Applications/Rails/common/include ' 'LDFLAGS=-L/Applications/Rails/common/lib' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontconfig=no --with-fontpath= --with-rsvg=no --with-xml=no
EXEC-PREFIX   /Applications/Rails/ImageMagick
HOST          i386-apple-darwin8.10.2
LDFLAGS       -L/Applications/Rails/ImageMagick/lib -L/Applications/Rails/common/lib -L/Applications/Rails/common/lib -lfreetype -lz
LIB_VERSION   0x647
LIB_VERSION_NUMBER 6,4,7,10
LIBS          -lMagickCore -lfreetype -ljpeg -lbz2 -lz -lm -lpthread 
NAME          ImageMagick
PCFLAGS       
PREFIX        /Applications/Rails/ImageMagick
QuantumDepth  16
RELEASE_DATE  2009-07-22
VERSION       6.4.7
WEBSITE       http://www.imagemagick.org
bash-3.2$ which convert
/Applications/Rails/common/bin/convert
and for good measure, the configure.xml

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuremap [
<!ELEMENT configuremap (configure)+>
<!ELEMENT configure (#PCDATA)>
<!ATTLIST configure name CDATA #REQUIRED>
<!ATTLIST configure value CDATA #REQUIRED>
]>
<configuremap>
  <configure name="NAME" value="ImageMagick"/>
  <configure name="LIB_VERSION" value="0x647"/>
  <configure name="LIB_VERSION_NUMBER" value="6,4,7,10"/>
  <configure name="RELEASE_DATE" value="2009-07-22"/>
  <configure name="CONFIGURE" value="./configure  '--prefix=/Applications/Rails/ImageMagick' '--with-perl=no' '--with-jpeg=yes' 'CC=gcc' 'CFLAGS=-I/Applications/Rails/common/include' 'LDFLAGS=-L/Applications/Rails/common/lib' 'CPPFLAGS=-I/Applications/Rails/common/include '"/>
  <configure name="PREFIX" value="/Applications/Rails/ImageMagick"/>
  <configure name="EXEC-PREFIX" value="/Applications/Rails/ImageMagick"/>
  <configure name="VERSION" value="6.4.7"/>
  <configure name="CC" value="gcc -std=gnu99"/>
  <configure name="CFLAGS" value="-I/Applications/Rails/common/include -Wall -W -D_THREAD_SAFE"/>
  <configure name="CPPFLAGS" value="-I/Applications/Rails/common/include/ImageMagick"/>
  <configure name="PCFLAGS" value=""/>
  <configure name="DEFS" value="-DHAVE_CONFIG_H"/>
  <configure name="LDFLAGS" value="-L/Applications/Rails/ImageMagick/lib -L/Applications/Rails/common/lib -L/Applications/Rails/common/lib -lfreetype -lz"/>
  <configure name="LIBS" value="-lMagickCore -lfreetype -ljpeg -lbz2 -lz -lm -lpthread "/>
  <configure name="CXX" value="g++"/>
  <configure name="CXXFLAGS" value="-g -O2 -Wall -W -D_THREAD_SAFE"/>
  <configure name="DISTCHECK_CONFIG_FLAGS" value="'CC=gcc' 'CFLAGS=-I/Applications/Rails/common/include' 'CPPFLAGS=-I/Applications/Rails/common/include ' 'LDFLAGS=-L/Applications/Rails/common/lib' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontconfig=no --with-fontpath= --with-rsvg=no --with-xml=no"/>
  <configure name="HOST" value="i386-apple-darwin8.10.2"/>
  <configure name="DELEGATES" value="bzlib freetype jpeg png wmf zlib"/>
  <configure name="COPYRIGHT" value="Copyright (C) 1999-2009 ImageMagick Studio LLC"/>
  <configure name="WEBSITE" value="http://www.imagemagick.org"/>
  <configure name="QuantumDepth" value="16"/>
  <!-- <configure name="MAGICK_TEMPORARY_PATH" value="/tmp"/> -->
  <!-- <configure name="MAGICK_MEMORY_LIMIT" value="2gb"/> -->
  <!-- <configure name="MAGICK_MAP_LIMIT" value="8gb"/> -->
  <!-- <configure name="MAGICK_AREA_LIMIT" value="4gb"/> -->
  <!-- <configure name="MAGICK_DISK_LIMIT" value="16eb"/> -->
  <!-- <configure name="MAGICK_FILE_LIMIT" value="768"/> -->
  <!-- <configure name="MAGICK_THREAD_LIMIT" value="8"/> -->
</configuremap>