# Having problem with jpg image delegate

**URL:** <https://www.ruby-forum.com/t/having-problem-with-jpg-image-delegate/109188>\
**Category:** Ruby\
**Created:** [July 12, 2007, 9:31am UTC](https://www.ruby-forum.com/t/having-problem-with-jpg-image-delegate/109188 "2007-07-12T09:31:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [July 12, 2007, 9:31am UTC](https://www.ruby-forum.com/t/having-problem-with-jpg-image-delegate/109188/1 "2007-07-12T09:31:32Z")

</div>

Hi,

I’ve been trying to get Rmagick working with Imagemagick for the last  
two days and although I’ve made some progress, I’m stuck on an error  
that is really confusing:

Adispatch.rb:4:in `read': no decode delegate for this image format`images/Flower\_Hat.jpg’ (Magick::ImageMagickError)

Okay, so I understand that the cause of this error is that the jpeg  
delegate is not installed. However, in my rmagick config.log:

LIBS=’-lMagick -lMagick -ltiff -lfreetype -ljpeg -lbz2 -lz -lpthread -  
lm -lpthread -lWand -lMagick -lgomp’  
LOCAL\_LIBS=’-lMagick -ltiff -lfreetype -ljpeg -lbz2 -lz -lpthread -lm -  
lpthread -lWand -lMagick -lgomp’

As you can see the libjpeg.so shared object is included and I have  
verified that the library exists in the /usr/lib directory which is in  
the link path.

Also my imagemagick is also configured with jpeg support. Is there  
something else I’m doing wrong here?

Please help! I desperately need to get this working soon.

Thanks  
-YY
