mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Document :combine_options
Turns out this is still undocumented functionality.
This commit is contained in:
parent
5ae2ecab6d
commit
6ee504b1d7
1 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,14 @@
|
||||||
#
|
#
|
||||||
# ActiveStorage::Variation.new(resize: "100x100", monochrome: true, trim: true, rotate: "-90")
|
# 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.
|
# A list of all possible transformations is available at https://www.imagemagick.org/script/mogrify.php.
|
||||||
class ActiveStorage::Variation
|
class ActiveStorage::Variation
|
||||||
attr_reader :transformations
|
attr_reader :transformations
|
||||||
|
|
Loading…
Reference in a new issue