Add a medium version to the picture uploader

This commit is contained in:
Petko Bordjukov 2014-09-17 19:47:07 +03:00
parent 2d285b5cc9
commit d5cdc8efc1
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ class PictureUploader < CarrierWave::Uploader::Base
# end # end
# Create different versions of your uploaded files: # Create different versions of your uploaded files:
version :medium do
process :resize_to_fit => [171, 180]
end
version :thumb do version :thumb do
process :resize_to_fit => [50, 50] process :resize_to_fit => [50, 50]
end end