1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove warning that image will be loaded into memory

This is not true anymore, the image will be downloaded into a temporary
file in a streaming fashion.
This commit is contained in:
Janko Marohnić 2018-04-23 12:24:26 +02:00
parent 7fc8b6d82c
commit e40091648b
No known key found for this signature in database
GPG key ID: 84166B4FB1C84F3E

View file

@ -19,10 +19,10 @@ require "active_storage/downloading"
# Rails.application.config.active_storage.variant_processor = :vips
# # => :vips
#
# Note that to create a variant it's necessary to download the entire blob file from the service. The larger
# the image, the more memory is used. Because of this process, you also want to be considerate about when the variant
# is actually processed. You shouldn't be processing variants inline in a template, for example. Delay the processing
# to an on-demand controller, like the one provided in ActiveStorage::RepresentationsController.
# Note that to create a variant it's necessary to download the entire blob file from the service. Because of this process,
# you also want to be considerate about when the variant is actually processed. You shouldn't be processing variants inline
# in a template, for example. Delay the processing to an on-demand controller, like the one provided in
# ActiveStorage::RepresentationsController.
#
# To refer to such a delayed on-demand variant, simply link to the variant through the resolved route provided
# by Active Storage like so: