Support selecting various sizes of profile pics
This commit is contained in:
parent
3883188dcd
commit
10d58ef050
5 changed files with 26 additions and 8 deletions
|
|
@ -62,6 +62,10 @@ class PictureUploader < CarrierWave::Uploader::Base
|
|||
process resize_to_fit: [100, 100]
|
||||
end
|
||||
|
||||
version :tiny do
|
||||
process resize_to_fit: [32, 32]
|
||||
end
|
||||
|
||||
version :first, if: :sponsor?
|
||||
version :first do
|
||||
process resize_and_pad: [320, 180, 'white']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue