Merge pull request #31927 from mrreynolds/patch-2

Document :combine_options
This commit is contained in:
Eileen M. Uchitelle 2018-02-09 09:18:11 -05:00 committed by GitHub
commit b6ee4e4b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,14 @@
#
# ActiveStorage::Variation.new(resize: "100x100", monochrome: true, trim: true, rotate: "-90")
#
# You can also combine multiple transformations in one step, e.g. for center-weighted cropping:
#
# ActiveStorage::Variation.new(combine_options: {
# resize: "100x100^",
# gravity: "center",
# crop: "100x100+0+0",
# })
#
# A list of all possible transformations is available at https://www.imagemagick.org/script/mogrify.php.
class ActiveStorage::Variation
attr_reader :transformations