From 935ff66c962166c7f24ae8cfc80a899a6ea2acb7 Mon Sep 17 00:00:00 2001 From: Bennett Goble Date: Sat, 3 Nov 2018 18:03:09 -0700 Subject: [PATCH] Sharpen small and medium thumbnails closes #7924 --- Changelog.md | 1 + app/uploaders/processed_image.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 7f0d57851..655040f8a 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,7 @@ * Make setting up a development environment 9001% easier by adding a Docker-based setup [#7870](https://github.com/diaspora/diaspora/pull/7870) * Improve `web+diaspora://` handler description [#7909](https://github.com/diaspora/diaspora/pull/7909) * Move comment timestamp next to author name [#7905](https://github.com/diaspora/diaspora/pull/7905) +* Sharpen small and medium thumbnails [#7924](https://github.com/diaspora/diaspora/pull/7924) ## Bug fixes * Ignore invalid URLs for camo [#7922](https://github.com/diaspora/diaspora/pull/7922) diff --git a/app/uploaders/processed_image.rb b/app/uploaders/processed_image.rb index a9cae6216..9d614f466 100644 --- a/app/uploaders/processed_image.rb +++ b/app/uploaders/processed_image.rb @@ -20,10 +20,10 @@ class ProcessedImage < CarrierWave::Uploader::Base end version :thumb_small do - process resize_to_fill: [50, 50] + process resize_to_fill: [50, 50, combine_options: {unsharp: "1.5x1+0.7+0.02"}] end version :thumb_medium do - process resize_to_limit: [100, 100] + process resize_to_limit: [100, 100, combine_options: {unsharp: "1.5x1+0.7+0.02"}] end version :thumb_large do process resize_to_limit: [300, 1500]