On Wed, Jul 29, 2009 at 11:41 AM, Sandip Ransing<[email protected]> wrote: > solved > > "#" used in style needs to be removed. > > #Files attached to channels > has_attached_file :logo, > :styles => { :small_thumb => [ "64x44", :jpg ], > :large_thumb => [ "81x81", :jpg ]}, > :storage => :s3, > :path => ":attachment/:id/:style.: > extension", >
Sandip Your resizing will warp (squash or stretch) images if they don't match your dimensions. To resize while maintaining aspect ratio, use "64x64>" - This will result in either the width or the height = 64 and the other side will be relatively smaller. To resize with crop, use "64x64#" - This will result in both width and height = 64 and the longer of the two will be cropped evenly on either side. You should usually use one of these unless you are very sure of the aspect ratio of the images being uploaded. Andrew Timberlake http://ramblingsonrails.com http://MyMvelope.com - The SIMPLE way to manage your savings --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

