Add a medium version to the picture uploader
This commit is contained in:
parent
2d285b5cc9
commit
d5cdc8efc1
|
@ -30,6 +30,11 @@ class PictureUploader < CarrierWave::Uploader::Base
|
|||
# end
|
||||
|
||||
# Create different versions of your uploaded files:
|
||||
|
||||
version :medium do
|
||||
process :resize_to_fit => [171, 180]
|
||||
end
|
||||
|
||||
version :thumb do
|
||||
process :resize_to_fit => [50, 50]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue