diff options
author | George Claghorn <george@basecamp.com> | 2019-01-24 11:46:42 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2019-01-24 11:46:42 -0500 |
commit | c1e949e9e618f75dc446ffa584c3b441c48714b1 (patch) | |
tree | 3986e58a1759ce3954c7df7c3d8a9b30937db839 /activestorage/app/models/active_storage/variation.rb | |
parent | 1fecebae31029cf2287f2bae88e8730f00569778 (diff) | |
download | rails-c1e949e9e618f75dc446ffa584c3b441c48714b1.tar.gz rails-c1e949e9e618f75dc446ffa584c3b441c48714b1.tar.bz2 rails-c1e949e9e618f75dc446ffa584c3b441c48714b1.zip |
Prefer ImageProcessing's resize_to_limit macro over resize_to_fit
Don't upsize images smaller than the specified dimensions.
Diffstat (limited to 'activestorage/app/models/active_storage/variation.rb')
-rw-r--r-- | activestorage/app/models/active_storage/variation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/app/models/active_storage/variation.rb b/activestorage/app/models/active_storage/variation.rb index 3adc2407e5..67568772da 100644 --- a/activestorage/app/models/active_storage/variation.rb +++ b/activestorage/app/models/active_storage/variation.rb @@ -6,7 +6,7 @@ # In case you do need to use this directly, it's instantiated using a hash of transformations where # the key is the command and the value is the arguments. Example: # -# ActiveStorage::Variation.new(resize_to_fit: [100, 100], monochrome: true, trim: true, rotate: "-90") +# ActiveStorage::Variation.new(resize_to_limit: [100, 100], monochrome: true, trim: true, rotate: "-90") # # The options map directly to {ImageProcessing}[https://github.com/janko-m/image_processing] commands. class ActiveStorage::Variation |