Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagick no decode delegate

Tags:

imagemagick

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

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

I'm doing this:

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

Anyone knows what the problem is?

like image 863
Trolley Avatar asked Mar 06 '12 14:03

Trolley


5 Answers

I had this error when 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 wasn't enough by itself).

brew uninstall imagemagick jpeg libtiff jasper
brew install imagemagick

Prior to that, running

identify -list format

and jpeg wasn't in the list. After reinstalling the above packages jpeg appeared in the list.

like image 196
Jonathon Horsman Avatar answered Nov 16 '22 13:11

Jonathon Horsman


for me:

 brew reinstall imagemagick --with-libtiff

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

UPDATE: one year later and this remains the only way I can get tiff working properly in convert on MacOS X.

like image 24
deepwinter Avatar answered Nov 16 '22 12:11

deepwinter


substitude the × in -resize 600×600 with a capital X and it should work.

-resize 600X600
like image 16
tgfuellner Avatar answered Nov 16 '22 13:11

tgfuellner


on Ubuntu 16, I had to install the following first (this was not a dev machine but a server):

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

then to enable the PNG and JPG delegates :

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

followed by

./configure

(Which should now show that the delegates are enabled)

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

like image 6
mathieuc Avatar answered Nov 16 '22 12:11

mathieuc


I had similiar problem. I was missing delegates for JPEG, PNG :

apt install libjpeg-dev
apt install libpng-dev

cd ImageMagick-7.1.0-19/
./configure

Now check the output is jpeg=yes; png=yes

make
sudo make install

Now try convert or mogrify

mogrify -path "output/" -resize 1920X1920 some.jpeg
like image 4
John Tribe Avatar answered Nov 16 '22 12:11

John Tribe