Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:5e43f6524734991773ae
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
# encoding: utf-8
 
class ImageUploader < CarrierWave::Uploader::Base
 
include CarrierWave::RMagick
include CarrierWave::MimeTypes
process :set_content_type
storage :fog
 
# Create different versions of your uploaded files:
version :small do
process :resize_to_fill => [220, 220]
end
version :medium do
process :resize_to_fill => [440, 440]
end
version :large do
process :resize_to_limit => [720, 2000]
end
 
def extension_white_list
%w(jpg jpeg gif png)
end
 
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.