Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed libjpeg62 and imagemagick on my ubuntu 10.04 (lucid).

Running identify command with a gif works but running it with a jpeg produces this error:

identify: no decode delegate for this image format `stream,13307,0.jpg' @ error/constitute.c/ReadImage/532.

Does anyone know how to fix this? Thanks!

share|improve this question

Well after spending an entire day trying to figure this out I finally got it, Ill post it just in case anyone else is having this similar issue. Here is how it started and the solution; I was running Ubuntu 9.10, Karmic Koala and had the current version of ImageMagick installed and it worked fine, I then had to update my ImageMagick to the latest version by running;

sudo apt-get install imagemagick

that is when i was no longer able to upload jpg via paperclip on my ruby on rails app. The solution is to go get the latest ImageMagick version and build it yourself;

tar xvfz ImageMagick.tar.gz
cd ImageMagick-*
./configure --disable-shared
sudo make install

Also after you run the command ./configure --disable-shared, look at the last 50 lines and make sure you see;

JPEG v1           --with-jpeg=yes       yes
JPEG-2000         --with-jp2=yes        yes

If it says no then you need to install libjpeg62. That worked for me, hope it helps others.

share|improve this answer
This is helpful, thanks. In my case, I had libjpeg62 installed but had to also install libjpeg62-dev to get it to work properly (and for JPEG 2000, also libjasper-runtime and libjasper-dev). – Ben Alpert Aug 14 '11 at 2:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.