problème dimensionnement petites images résolu

This commit is contained in:
Nicolas Bally 2011-07-05 22:48:41 +02:00
parent a8ee326bdb
commit 47bfaee09b

View File

@ -22,7 +22,7 @@ class ImageUploader < CarrierWave::Uploader::Base
# end # end
# Process files as they are uploaded: # Process files as they are uploaded:
process :resize_to_fit => [1200, 1200] process :resize_to_limit => [1200, 1200]
# #
# def scale(width, height) # def scale(width, height)
# # do something # # do something
@ -35,17 +35,17 @@ class ImageUploader < CarrierWave::Uploader::Base
# Create different versions of your uploaded files: # Create different versions of your uploaded files:
version :large do version :large do
process :resize_to_fit => [980, 980] process :resize_to_limit => [980, 980]
version :medium do version :medium do
process :resize_to_fit => [570, 400] process :resize_to_limit => [570, 400]
version :small do version :small do
process :resize_to_fit => [300, 400] process :resize_to_limit => [300, 400]
version :thumb do version :thumb do
process :resize_to_fit => [250, 250] process :resize_to_limit => [250, 250]
end end
end end