Makes CMS and UploadField thumbnails clearer
This module fixes an issue in Silverstripe 4 which results in particularly tall or wide images having pixelated/blurry thumbnails in the CMS, particularly for UploadFields
.
Before:
After:
It also increases the size of thumbnail images to ensure they remain crips on HiDPI/Retina displays.
composer require purplespider/silverstripe-clearer-thumbnails "1.*"
https://www.example.com?flush=1
php vendor/silverstripe/framework/cli-script.php dev/tasks/MigrateFileTask only=generate-cms-thumbnails
It simply overrides some settings via a config file to:
ThumbnailGenerator
$method
from FitMax
to Fill
which avoids thumbnails being generated too small and then stretched.UploadField
$thumbnail_width
and $thumbnail_height
from 60
to 120
to ensure thumbnails are crisp on HiDPI/Retina displays.Image
$asset_preview_width
and $asset_preview_height
to ensure image previews in the Files area are crisp on HiDPI/Retina displays.Any updates to this module which require the generate-cms-thumbnails
task to be re-run will be tagged as a new major version. So when updating major versions please remember to do this.
cpulimit
to limit the effect it has on the site, e.g. cpulimit -p 1234 -l 50
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem