uploading a square image is not a problem.
but when i upload a rectangular image.
image gets distorted.

On Wed, Jul 29, 2009 at 11:24 AM, Sandip Ransing <[email protected]> wrote:

> Hi
>
>
> here is my attached file code
>
>   #Files attached to channels
>    has_attached_file :logo,
>       :styles => { :small_thumb => [ "64x44#", :jpg ],
>       :large_thumb => [ "81x81#", :jpg ]},
>     :storage => :s3,
>     :path => ":attachment/:id/:style.:extension",
>     :s3_credentials => open( "#{RAILS_ROOT}/config/s3.yml", 'r' ),
>     :s3_permissions => 'public-read',
>     :bucket => ApplicationConfig[ 's3_buckets' ][ 'channels' ][ 'logo' ],
>     :default_url => "/images/missing/channels/logo/:style.gif"
>
>
> Thanks,
> Sandip R~
>



-- 
Ruby on Rails Developer
http://sandip.sosblog.com
http://funonrails.wordpress.com
www.joshsoftware.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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to