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?
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.
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.
substitude the ×
in -resize 600×600
with a capital X
and it should work.
-resize 600X600
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
)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With