ImageMagick no decode delegate

I am trying to convert an image with imagemagick, but I am getting this error:

convert: no decode delegate for this image format `//i.imgur.com/nTheJ.jpg '@ error / make up .c / ReadImage / 532.

I'm doing it:

convert http://i.imgur.com/nTheJ.jpg -resize 600×600 filarkiv/billeder/produkter/s236-085145.jpg 

I have the following delegates:

DELEGATES freetype jpeg jng mpeg png x11 xml zlib

Does anyone know what the problem is?

+57
imagemagick
Mar 06 2018-12-12T00:
source share
10 answers

the substring × into -resize 600×600 with capital X , and it should work.

 -resize 600X600 
+13
Mar 06 '12 at 15:38
source share

I had this error while rendering an image using DragonFly in Rails. This happened after I upgraded to Lion (ImageMagick was installed using Brew).

I reinstalled ImageMagick, jpeg, libtiff and jasper (reinstalling ImageMagick was not enough on its own).

 brew uninstall imagemagick jpeg libtiff jasper brew install imagemagick 

Before that, working

 identify -list format 

and jpeg was not on the list. After reinstalling the above packages, jpeg appeared in the list.

+73
Apr 25 2018-12-15T00:
source share

for me:

  brew reinstall imagemagick --with-libtiff 

saved day when dealing with a similar problem, but for tiff files.

UPDATE: in a year, and this remains the only way I can work properly in converting to MacOS X.

+26
May 05 '14 at 20:54
source share

Recently, I have encountered the same problem. After Googling for several hours, I found out that the reason was CONFLICT between the php extensions Gmagick and Imagick. Commenting on gmagick.so in php.ini, fixed the problem. Hope this saves you time :)

+3
Jan 9 '15 at 12:13
source share

from Phillip Ingram somewhere on interwebs:

in use gentoo

 sudo EXTRA_ECONF="--with-png --with-jpeg" emerge imagemagick" 

This is slightly different from Jonathan Horsman's answer, as it was not a mistake, but a need to specify more during installation.

But the identification team was very helpful.

Hope this helps someone (and maybe me in the future;).

+1
Oct 21 '15 at 16:00
source share

In my case, the solution was to terminate the command with *.{jpg,png} , not * .

I believe that * collected / tried to convert hidden files.

+1
Nov 07 '16 at 18:01
source share

redhat4.8, If you are installing from the source, you might try:

yum remove libjpeg

wget http://www.imagemagick.org/download/delegates/jpegsrc.v9a.tar.gz

sudo tar xvf jpegsrc.v9a.tar.gz -C / usr / local / src /

cd / usr / local / src / jpeg-9a

./configure --enable-shared

to do

sudo make install

than enable imagemagick

cd ImageMagick-6.9.6-4

./Configure

sudo make install

sudo ldconfig / usr / local / lib

+1
Nov 17 '16 at 6:48
source share

I ran into a similar problem with TIFF files on ImageMagick v7.0.4-5 on Windows 7.

If this question is about Windows, the reason is that Windows cannot find the Jpeg file library (in my case, TIFF) (DLL).

Cause

I installed ImageMagick without adding it to Windows $PATH .

Error message

This led to an error

 identify: unable to load module 'C:\Program Files\ImageMagick-7.0.4-Q16\modules\coders\IM_MOD_RL_TIFF_.dll': The specified module could not be found. @ error/module.c/OpenModule/1279. identify: no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/509. 

Decision

  • Reinstall ImageMagick and add it to $PATH so that it can find libtiff . Reboot your shell.
  • First cd to the ImageMagick installation folder before executing it.
0
Jan 26 '17 at 9:49 on
source share

in Ubuntu 16, I first had to install the following (it was not a developer machine, but a server):

 sudo apt-get install autoconf automake autotools-dev libtool pkg-config 

then to enable delegates PNG and JPG:

 sudo apt-get install libpng12 libpng12-dev libjpeg libjpeg-dev 

followed by

 ./configure 

(which should now show that delegates are included)

and then restore ( make clean && make then sudo make install )

0
Apr 23 '19 at 1:03
source share

I had a problem, and I forgot to put the uploaded photo in obj against I put the path.

file_get_contents ($ pathToPhoto)

can someone help: [

0
Aug 22 '19 at 4:59
source share



All Articles