I'm using paperclip for uploading images, and I'm running into a weird
error:


2 errors prohibited this billboard from being saved
There were problems with the following fields:

    * Image
/var/folders/bh/bh5FVAlvF5C38oqg94dcbU+++TI/-Tmp-/stream.1605.0 is not
recognized by the 'identify' command.
    * Image
/var/folders/bh/bh5FVAlvF5C38oqg94dcbU+++TI/-Tmp-/stream.1605.0 is not
recognized by the 'identify' command.



This only happens when I try to upload a .jpg. I can do .png and .gif
just fine.
I can run identify from the application root directory. Here is my
model.



class Billboard < ActiveRecord::Base

  has_attached_file :image,
                    :url =>
"/assets/:class/:id/:attachment/:style.:extension",
                    :path =>
":rails_root/public/assets/:class/:id/:attachment/:style.:extension",
                    :default_url => "/images/billboard_default.jpg",
                    :styles => {:main => "905x268#", :thumb =>
"100x30>"}
end



jeremy-woertinks-imac:ecr jeremywoertink$ which identify
/usr/local/bin/identify
jeremy-woertinks-imac:ecr jeremywoertink$ identify -version
Version: ImageMagick 6.6.2-1 2010-06-02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features:


Has anyone had this issue?

Thanks,
~Jeremy
-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to