Question

I using rails 2.3.4 and PaperClip gem as plugin (the latest git master). And, given the following code:

class Banner < ActiveRecord::Base
  has_attached_file :picture,
                :url => "/banners/:id/:basename.:extension",
                :path => ":rails_root/public/banners/:id/:basename.:extension",
                :style => { :original => '150x150>'}

If i upload a picture with size 359x359 it doesn't be resized to 150x150 but stored it's own size, what i don't want. Is there any way to enforce resizing or do something? I think i do something wrong but i don't know what...

Was it helpful?

Solution

:style is incorrect. The symbol is :styles

OTHER TIPS

You need to install a post-processor like ImageMagick.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top