ImageMagick as plugin?

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/

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

Thanks for the help!!!
Dustin

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/

All I get is the alt tag:

IMG_6732

Thanks in advance for any help!
Dustin

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.

If I go directly to
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

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

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

-Dustin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs