A. Leek wrote:
> 
> I poked around and it seemed to be a problem with ImageMagick, which I 
> didn't have installed. I installed it and checked that the PATH was 
> right, but it keeps giving the the same error. Looking around, I tried 
> the solution here: 
> http://snipplr.com/view/29445/getting-paperclip-working-in-windows/ 
> changing the ImageMagick location to what I had in the PATH, but it 
> keeps giving me the same error.

There is a duality to Paperclip in that it is meant to process anything, 
but the default processor (Thumbnail) is for images. I'm guessing the 
versatility of it is why it doesn't do a hard check for ImageMagick 
before it tries to process anything.

As far as the Paperclip Processor knows the command just fails, and 
therefor processing fails, and therefore there is no image to link to. I 
highly recommend writing a test that just checks that the path you're 
using for ImageMagick exists. Something as simple as:

IMAGE_MAGICK_PATH = "/my/path/to/imagemagick"

def test_image_magick_is_installed
  assert File.exist?(IMAGE_MAGICK_PATH)
end

At least then you know that your install is working.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to