I am getting this error:
Image Paperclip::Errors::NotIdentifiedByImageMagickError
...in Ruby on Rails in Windows 10 when cropping the image with the Paperclip styles
option in my Model.
class Post < ActiveRecord::Base
has_attached_file :img, styles: { large: "600x600>", medium: "300x300>", thumb: "100x100>" }
validates_attachment_content_type :img, content_type: /\Aimage\/.*\Z/
end
However, it works fine if I remove the style attribute, i.e.:
class Post < ActiveRecord::Base
has_attached_file :img
validates_attachment_content_type :img, content_type: /\Aimage\/.*\Z/
end