Skip to content

Instantly share code, notes, and snippets.

@wilg
Created July 16, 2012 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilg/3124753 to your computer and use it in GitHub Desktop.
Save wilg/3124753 to your computer and use it in GitHub Desktop.
# 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