I just installed paperclip into my app to upload images, and everything was working well until I tried to add the styles to make the image resize. (I can upload images fine before I add this code)
on pins.rb:
has_attached_file :image, styles: { medium: "300x300>" }
I then added the class to on _pin.html.rb:
<td><%= image_tag pin.image(:medium) %></td>
But now, when I try and upload an image, I get the error:
Paperclip::Errors::NotIdentifiedByImageMagickError
When I remove the styles, it works fine (alebit not resized), but something in the resizing is messing it all up. I tried different file types and filenames. I have searched for this error on google, and all the solutions aren't working for me. The most popular was to downgrade Cocaine, but when I try that it I get the message:
Bundler could not find compatible versions for gem "cocaine":
In Gemfile:
paperclip (~> 3.4.1) ruby depends on
cocaine (~> 0.5.0) ruby
cocaine (0.3.2)
My rails server is returning the message:
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-22 21:50:05 -0400
Served asset /application.js - 304 Not Modified (1ms)
[2013-03-22 21:50:05] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
Any help? I have it on github at https://github.com/jeremybelcher/omrails if that helps.