From c1e949e9e618f75dc446ffa584c3b441c48714b1 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Thu, 24 Jan 2019 11:46:42 -0500 Subject: Prefer ImageProcessing's resize_to_limit macro over resize_to_fit Don't upsize images smaller than the specified dimensions. --- guides/source/active_storage_overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source/active_storage_overview.md') diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md index 474a93c83e..e3bb41ae32 100644 --- a/guides/source/active_storage_overview.md +++ b/guides/source/active_storage_overview.md @@ -434,7 +434,7 @@ original blob into the specified format and redirect to its new service location. ```erb -<%= image_tag user.avatar.variant(resize_to_fit: [100, 100]) %> +<%= image_tag user.avatar.variant(resize_to_limit: [100, 100]) %> ``` To switch to the Vips processor, you would add the following to -- cgit v1.2.3