Add original version to uploaders

This commit is contained in:
Karina Kwiatek 2020-05-02 13:09:12 +01:00 committed by Dominik M. Kwiatek
parent 3cc05a395f
commit 9757c56a2b
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,8 @@ class ProfileHeaderUploader < CarrierWave::Uploader::Base
"/images/header/" + [version_name, "no_header.jpg"].compact.join('/')
end
version :original
version :web do
process resize_to_fit: [1500, 350]
end

View File

@ -23,6 +23,8 @@ class ProfilePictureUploader < CarrierWave::Uploader::Base
"/images/" + [version_name, "no_avatar.png"].compact.join('/')
end
version :original
version :large do
process resize_to_fit: [500, 500]
end