Skip to content

Commit 87b7ca3

Browse files
committed
Replace weak links with config names
Those previous links try to point to the exact line where defines the configuration. It is weak because it will point to a different place if someone adds or removes code in those files.
1 parent 8d8e5a5 commit 87b7ca3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

guides/source/active_storage_overview.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -850,11 +850,14 @@ location.
850850
<%= image_tag user.avatar.variant(resize_to_limit: [100, 100]) %>
851851
```
852852

853-
If a variant is requested, Active Storage will automatically apply
853+
If a variant is requested, Active Storage will automatically apply
854854
transformations depending on the image's format:
855855

856-
1. Content types that are [`variable`] and not considered [`web images`], will be converted to PNG.
857-
2. If `quality` is not specified, the variant processor's default quality for the format will be used.
856+
1. Content types that are variable (as dictated by `config.active_storage.variable_content_types`)
857+
and not considered web images (as dictated by `config.active_storage.web_image_content_types`),
858+
will be converted to PNG.
859+
860+
2. If `quality` is not specified, the variant processor's default quality for the format will be used.
858861

859862
The default processor for Active Storage is MiniMagick, but you can also use
860863
[Vips][]. To switch to Vips, add the following to `config/application.rb`:
@@ -876,8 +879,6 @@ specific:
876879
```
877880

878881
[`variant`]: https://api.rubyonrails.org/classes/ActiveStorage/Blob/Representable.html#method-i-variant
879-
[`web images`]: https://github.com/rails/rails/blob/main/activestorage/lib/active_storage/engine.rb#L47
880-
[`variable`]: https://github.com/rails/rails/blob/main/activestorage/lib/active_storage/engine.rb#L34
881882
[Vips]: https://www.rubydoc.info/gems/ruby-vips/Vips/Image
882883

883884
### Previewing Files

0 commit comments

Comments
 (0)