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.
jonasjonas
Posts: 5 Joined: 2013-10-25T05:30:22-07:00
Authentication code: 6789
Post
by jonasjonas » 2013-10-25T05:35:01-07:00
I have a new macports installation from the source and installed ImageMagick 6.8.7-0.
A new install of Imagemagick does not seem to support any image types.
Code: Select all
$ identify -list format -v
Format Module Mode Description
-------------------------------------------------------------------------------
* native blob support
r read support
w write support
+ support for multiple images
The image libraries are installed though:
Code: Select all
jpeg @9_1 (active)
openjpeg15 @1.5.0_0 (active)
libpng @1.5.17_0 (active)
tiff @4.0.3_1 (active)
trying to convert any images results in the following error message:
Code: Select all
$ convert 20131024/screen_1105_01.png ~/Desktop/test.jpg
convert: no decode delegate for this image format `20131024/screen_1105_01.png' @ error/constitute.c/ReadImage/552.
convert: no images defined `/Users/jonas/Desktop/test.jpg' @ error/convert.c/ConvertImageCommand/3127.
Here also the bug report on macports:
https://trac.macports.org/ticket/40909
Any ideas why this could happen or what I could do to work around this issue?
Last edited by
jonasjonas on 2013-10-25T06:40:16-07:00, edited 1 time in total.
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2013-10-25T05:50:31-07:00
Add -debug module to your command-line. The output should tell you why ImageMagick is not finding its coder modules.
jonasjonas
Posts: 5 Joined: 2013-10-25T05:30:22-07:00
Authentication code: 6789
Post
by jonasjonas » 2013-10-25T06:02:47-07:00
That is the output:
Code: Select all
$ convert -debug module 20131024/screen_1105_01.png ~/Desktop/test.jpg
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/OpenModule/1262/Module
Searching for module "PNG" using filename "png.la"
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "png.la" ...
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/OpenModule/1262/Module
Searching for module "PNG" using filename "png.la"
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "png.la" ...
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/OpenModule/1262/Module
Searching for module "PNG" using filename "png.la"
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "png.la" ...
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/OpenModule/1262/Module
Searching for module "PNG" using filename "png.la"
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "png.la" ...
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/OpenModule/1262/Module
Searching for module "PNG" using filename "png.la"
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "png.la" ...
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/OpenModule/1262/Module
Searching for module "PNG" using filename "png.la"
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "png.la" ...
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/OpenModule/1262/Module
Searching for module "PNG" using filename "png.la"
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "png.la" ...
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/OpenModule/1262/Module
Searching for module "PNG" using filename "png.la"
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "png.la" ...
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/OpenModule/1262/Module
Searching for module "PNG" using filename "png.la"
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "png.la" ...
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/OpenModule/1262/Module
Searching for module "PNG" using filename "png.la"
2013-10-25T15:03:22+02:00 0:00.010 0.000u 6.8.7 Module convert[87904]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "png.la" ...
convert: no decode delegate for this image format `20131024/screen_1105_01.png' @ error/constitute.c/ReadImage/552.
convert: no images defined `/Users/jonas/Desktop/test.jpg' @ error/convert.c/ConvertImageCommand/3127.
There is no png.la on my system, but a png.so under:
Code: Select all
/opt/local/lib/ImageMagick-6.8.7/modules-Q16/coders/png.so
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2013-10-25T06:13:10-07:00
The output shows the coder module is not found. On our system we get:
Code: Select all
-> convert -debug module wizard.png null:
2013-10-25T09:11:15-04:00 0:00.000 0.000u 6.8.7 Module convert[27073]: module.c/OpenModule/1262/Module
Searching for module "PNG" using filename "png.la"
2013-10-25T09:11:15-04:00 0:00.000 0.000u 6.8.7 Module convert[27073]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "png.la" ...
2013-10-25T09:11:15-04:00 0:00.000 0.000u 6.8.7 Module convert[27073]: module.c/OpenModule/1271/Module
Opening module at path "/usr/local/lib/ImageMagick-6.8.7//modules-Q16HDRI/coders/png.la"
2013-10-25T09:11:15-04:00 0:00.000 0.000u 6.8.7 Module convert[27073]: module.c/OpenModule/1298/Module
Method "RegisterPNGImage" in module "PNG" at address 0x7fb7e5642b50
2013-10-25T09:11:15-04:00 0:00.000 0.000u 6.8.7 Module convert[27073]: module.c/OpenModule/1312/Module
Method "UnregisterPNGImage" in module "PNG" at address 0x7fb7e5643140
2013-10-25T09:11:15-04:00 0:00.010 0.030u 6.8.7 Module convert[27073]: module.c/OpenModule/1262/Module
Searching for module "NULL" using filename "null.la"
2013-10-25T09:11:15-04:00 0:00.010 0.030u 6.8.7 Module convert[27073]: module.c/GetMagickModulePath/564/Module
Searching for coder module file "null.la" ...
2013-10-25T09:11:15-04:00 0:00.010 0.030u 6.8.7 Module convert[27073]: module.c/OpenModule/1271/Module
Opening module at path "/usr/local/lib/ImageMagick-6.8.7//modules-Q16HDRI/coders/null.la"
2013-10-25T09:11:15-04:00 0:00.010 0.030u 6.8.7 Module convert[27073]: module.c/OpenModule/1298/Module
Method "RegisterNULLImage" in module "NULL" at address 0x7fb7e1639090
2013-10-25T09:11:15-04:00 0:00.010 0.030u 6.8.7 Module convert[27073]: module.c/OpenModule/1312/Module
Method "UnregisterNULLImage" in module "NULL" at address 0x7fb7e1639100
Next up, post the output of this command to help us debug:
ryandesign
Posts: 17 Joined: 2012-05-22T18:37:42-07:00
Authentication code: 13
Post
by ryandesign » 2013-10-25T06:15:14-07:00
Aha. ImageMagick apparently requires .la files.
In MacPorts, as of Mavericks, we delete .la files by default, because they are usually useless. But if ImageMagick needs them, we can retain them for ImageMagick.
jonasjonas
Posts: 5 Joined: 2013-10-25T05:30:22-07:00
Authentication code: 6789
Post
by jonasjonas » 2013-10-25T06:19:45-07:00
ryandesign wrote: Aha. ImageMagick apparently requires .la files.
In MacPorts, as of Mavericks, we delete .la files by default, because they are usually useless. But if ImageMagick needs them, we can retain them for ImageMagick.
Is this just a setting in the portfile?
jonasjonas
Posts: 5 Joined: 2013-10-25T05:30:22-07:00
Authentication code: 6789
Post
by jonasjonas » 2013-10-25T06:20:23-07:00
The convert -list configure output:
Code: Select all
Path: /opt/local/lib/ImageMagick-6.8.7//config-Q16/configure.xml
Name Value
-------------------------------------------------------------------------------
CC /usr/bin/clang
CFLAGS -I/opt/local/include/freetype2 -I/opt/local/include -pipe -Os -arch x86_64 -Wall -D_FORTIFY_SOURCE=0 -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH /opt/local/lib/ImageMagick-6.8.7/modules-Q16/coders
CONFIGURE ./configure '--prefix=/opt/local' '--enable-shared' '--enable-static' '--disable-ltdl-install' '--disable-silent-rules' '--with-frozenpaths' '--without-openexr' '--disable-hdri' '--with-dps' '--with-bzlib' '--with-djvu' '--with-fontconfig' '--with-gslib' '--with-jpeg' '--with-lcms' '--with-png' '--with-tiff' '--with-webp' '--with-zlib' '--with-modules' '--with-xml' '--without-perl' '--without-fpx' '--without-jbig' '--without-jp2' '--without-wmf' '--without-gvc' '--without-rsvg' '--without-lqr' '--without-pango' '--with-gs-font-dir=/opt/local/share/fonts/urw-fonts' '--with-x' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/clang++' 'CXXFLAGS=-pipe -Os -arch x86_64'
CONFIGURE_PATH /opt/local/etc/ImageMagick-6/
COPYRIGHT Copyright (C) 1999-2013 ImageMagick Studio LLC
CPPFLAGS -I/opt/local/include/ImageMagick-6
CXX /usr/bin/clang++
CXXFLAGS -pipe -Os -arch x86_64 -D_THREAD_SAFE -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib djvu mpeg fftw fontconfig freetype gslib jng jpeg lcms lzma png ps tiff webp x xml zlib
DISTCHECK_CONFIG_FLAGS 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/clang++' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fpx=no --with-fontpath= --with-gs-font-dir=/opt/local/share/fonts/urw-fonts --with-gvc=no --with-jp2=no --with-lqr=no --with-mupdf=no --with-openexr=no --with-pango=no --with-rsvg=no --with-wmf=no --with-perl=no
DOCUMENTATION_PATH /opt/local/share/doc/ImageMagick-6
EXEC-PREFIX /opt/local
EXECUTABLE_PATH /opt/local/bin
FEATURES DPC Modules
FILTER_PATH /opt/local/lib/ImageMagick-6.8.7/modules-Q16/filters
HOST x86_64-apple-darwin13.0.0
INCLUDE_PATH /opt/local/include/ImageMagick-6
LDFLAGS -L/opt/local/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -L/opt/local/lib
LIB_VERSION 0x687
LIB_VERSION_NUMBER 6,8,7,0
LIBRARY_PATH /opt/local/lib/ImageMagick-6.8.7
LIBS -lMagickCore -llcms2 -L/opt/local/lib -lfreetype -lfftw3 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11 -lXt -L/opt/local/lib -llzma -lbz2 -lz -lltdl -lm
NAME ImageMagick
PCFLAGS -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX /opt/local
QuantumDepth 16
RELEASE_DATE 2013-10-24
SHARE_PATH /opt/local/share/ImageMagick-6
SHAREARCH_PATH /opt/local/lib/ImageMagick-6.8.7/config-Q16
SVN_REVISION 13290
TARGET_CPU x86_64
TARGET_OS darwin13.0.0
TARGET_VENDOR apple
VERSION 6.8.7
WEBSITE http://www.imagemagick.org
Path: [built-in]
Name Value
-------------------------------------------------------------------------------
FEATURES
NAME ImageMagick
QuantumDepth 16
ryandesign
Posts: 17 Joined: 2012-05-22T18:37:42-07:00
Authentication code: 13
Post
by ryandesign » 2013-10-25T06:25:09-07:00
jonasjonas wrote: Is this just a setting in the portfile?
Yes. I've fixed it while updating the port to 6.8.7-3.
jonasjonas
Posts: 5 Joined: 2013-10-25T05:30:22-07:00
Authentication code: 6789
Post
by jonasjonas » 2013-10-25T06:32:30-07:00
Cool. Thanks!
jjvainstein
Posts: 1 Joined: 2013-11-07T04:23:32-07:00
Authentication code: 6789
Post
by jjvainstein » 2013-11-07T04:26:37-07:00
Hi ryandesign,
I'm using osx mavericks and I need to use ImageMagick convert to create a thumbnail from a video. In ubuntu it works perfect but in osx it doesn't work. Can you explain me how you fix the problem of the .la files?
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2013-11-07T10:48:39-07:00
jjvainstein wrote: Hi ryandesign,
I'm using osx mavericks and I need to use ImageMagick convert to create a thumbnail from a video. In ubuntu it works perfect but in osx it doesn't work. Can you explain me how you fix the problem of the .la files?
Yes. I've fixed it while updating the port to 6.8.7-3.
It would appear that you need to install IM 6.8.7.3 or higher to get the MacPorts fix.