Support selecting various sizes of profile pics

This commit is contained in:
Michael Ball 2020-07-15 23:27:22 -07:00
parent 3883188dcd
commit 10d58ef050
5 changed files with 26 additions and 8 deletions

View file

@ -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']