Add original version to uploaders
This commit is contained in:
parent
3cc05a395f
commit
9757c56a2b
|
@ -23,6 +23,8 @@ class ProfileHeaderUploader < CarrierWave::Uploader::Base
|
||||||
"/images/header/" + [version_name, "no_header.jpg"].compact.join('/')
|
"/images/header/" + [version_name, "no_header.jpg"].compact.join('/')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
version :original
|
||||||
|
|
||||||
version :web do
|
version :web do
|
||||||
process resize_to_fit: [1500, 350]
|
process resize_to_fit: [1500, 350]
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,6 +23,8 @@ class ProfilePictureUploader < CarrierWave::Uploader::Base
|
||||||
"/images/" + [version_name, "no_avatar.png"].compact.join('/')
|
"/images/" + [version_name, "no_avatar.png"].compact.join('/')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
version :original
|
||||||
|
|
||||||
version :large do
|
version :large do
|
||||||
process resize_to_fit: [500, 500]
|
process resize_to_fit: [500, 500]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue