Created
July 16, 2012 20:12
-
-
Save wilg/3124753 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
class AvatarUploader < CarrierWave::Uploader::Base | |
include Cloudinary::CarrierWave | |
process :convert => 'jpg' | |
process :tags => ['avatar'] | |
process :angle => "exif" | |
process :default_image => "/assets/profile_profpictureplaceholder.png" | |
version :standard do | |
process :resize_to_fill => [350, 250, :north] | |
end | |
version :medium_thumbnail do | |
process :resize_to_fill => [100, 100] | |
end | |
version :thumbnail do | |
process :resize_to_fill => [50, 50] | |
end | |
version :feed_thumbnail do | |
process :resize_to_fill => [57, 57] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment