Skip to content

Commit b97a762

Browse files
authored
Merge pull request rails#54850 from mrhead/variant-default-processor
[ci skip] docs(activestorage): Update default variant processor
2 parents 5bfce57 + e1347ab commit b97a762

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

activestorage/app/models/active_storage/variant.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
#
99
# Variants rely on {ImageProcessing}[https://github.com/janko/image_processing] gem for the actual transformations
1010
# of the file, so you must add <tt>gem "image_processing"</tt> to your Gemfile if you wish to use variants. By
11-
# default, images will be processed with {ImageMagick}[http://imagemagick.org] using the
12-
# {MiniMagick}[https://github.com/minimagick/minimagick] gem, but you can also switch to the
13-
# {libvips}[http://libvips.github.io/libvips/] processor operated by the {ruby-vips}[https://github.com/libvips/ruby-vips]
11+
# default, images will be processed with {libvips}[http://libvips.github.io/libvips/] using the
12+
# {ruby-vips}[https://github.com/libvips/ruby-vips] gem, but you can also switch to the
13+
# {ImageMagick}[http://imagemagick.org] processor operated by the {MiniMagick}[https://github.com/minimagick/minimagick]
1414
# gem).
1515
#
1616
# Rails.application.config.active_storage.variant_processor
17-
# # => :mini_magick
18-
#
19-
# Rails.application.config.active_storage.variant_processor = :vips
2017
# # => :vips
2118
#
19+
# Rails.application.config.active_storage.variant_processor = :mini_magick
20+
# # => :mini_magick
21+
#
2222
# Note that to create a variant it's necessary to download the entire blob file from the service. Because of this process,
2323
# you also want to be considerate about when the variant is actually processed. You shouldn't be processing variants inline
2424
# in a template, for example. Delay the processing to an on-demand controller, like the one provided in

0 commit comments

Comments
 (0)