add photo size adjust
This commit is contained in:
parent
bba190697d
commit
0e51685dcf
|
@ -9,7 +9,15 @@ class PhotoUploader < CarrierWave::Uploader::Base
|
|||
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
||||
end
|
||||
|
||||
process :resize_to_limit => [680,nil]
|
||||
process :resize_to_limit => [1200,nil]
|
||||
|
||||
version :medium do
|
||||
process :resize_to_limit => [640,nil]
|
||||
end
|
||||
|
||||
version :small do
|
||||
process :resize_to_limit => [400,nil]
|
||||
end
|
||||
|
||||
def extension_white_list
|
||||
%w(jpg jpeg gif png)
|
||||
|
|
Loading…
Reference in New Issue