# ImageMagick as plugin?

**URL:** <https://www.ruby-forum.com/t/imagemagick-as-plugin/87945>\
**Category:** Rails\
**Created:** [March 7, 2007, 12:54am UTC](https://www.ruby-forum.com/t/imagemagick-as-plugin/87945 "2007-03-07T00:54:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkanders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Post date:** [March 7, 2007, 12:54am UTC](https://www.ruby-forum.com/t/imagemagick-as-plugin/87945/1 "2007-03-07T00:54:04Z")

</div>

Hi All,

I’m wondering if there is a way to check and make sure I have  
Imagemagick/RMagick/DarwinPorts installed properly…

I’m pretty sure I have it installed, but when I go to use imagemagic\_tag  
in my application, it doesn’t process the image resize that I ask it  
to… It just throws the tag for the image into the view…

Any ideas on how to start troubleshooting? I installed the plugin into  
the vendor/plugins directory as it says here:  
[http://vantulder.net/rails/magick/](http://vantulder.net/rails/magick/)

We’re using edge rails, so I don’t know if that affects how plugins  
work?

Thanks for the help!!!  
Dustin

---

<div class="post-metadata">

**Author:** ![dkanders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Post date:** [March 7, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/imagemagick-as-plugin/87945/2 "2007-03-07T17:00:54Z")

</div>

OK, I’ve established that ImageMagick is installed on my machine  
properly, but I still can’t get the imagemagick\_tag function to work…

here is how I have it set up:

photos\_controller.rb:  
class PhotosController \< ApplicationController

imagemagick\_for\_directory ‘/images/photos/’

…(blah blah blah)  
end

here it is in my my photos/list.rhtml view:

\<%= imagemagick\_tag ‘images/photos/IMG\_6732.jpg’%\>

when I go to

[http://localhost:3000/photos/list/](http://localhost:3000/photos/list/)

All I get is the alt tag:

IMG\_6732

Thanks in advance for any help!  
Dustin

---

<div class="post-metadata">

**Author:** ![dkanders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Post date:** [March 7, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/imagemagick-as-plugin/87945/3 "2007-03-07T17:33:55Z")

</div>

If all you are seeing is the ALT tag then the image probably ins’t being  
found. right click on it and look at the properties. What is the Actual  
URL of the image? that might give you a clue.

---

<div class="post-metadata">

**Author:** ![dkanders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Post date:** [March 7, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/imagemagick-as-plugin/87945/4 "2007-03-07T21:41:54Z")

</div>

If I go directly to  
[http://localhost:3000/photos/imagemagick/images/photos/IMG\_6732.jpg](http://localhost:3000/photos/imagemagick/images/photos/IMG_6732.jpg)

here is the error I’m getting:

Routing Error

no route found to match “/photos/imagemagick/images/photos/IMG\_6732.jpg”  
with {:method=\>:get}

still troubleshooting… thanks,  
Dustin

---

<div class="post-metadata">

**Author:** ![dkanders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Post date:** [March 7, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/imagemagick-as-plugin/87945/5 "2007-03-07T19:09:11Z")

</div>

RJ wrote:

> If all you are seeing is the ALT tag then the image probably ins’t being  
> found. right click on it and look at the properties. What is the Actual  
> URL of the image? that might give you a clue.

Thanks RJ -

Here is the URL of the image… do you know where this would direct the  
controller to?

[http://localhost:3000/photos/imagemagick/images/photos/IMG\_6732.jpg](http://localhost:3000/photos/imagemagick/images/photos/IMG_6732.jpg)

I’ll keep digging on it - any more help is greatly appreciated 🙂

-Dustin
