Download the PHP package purplespider/silverstripe-clearer-thumbnails without Composer
On this page you can find all versions of the php package purplespider/silverstripe-clearer-thumbnails. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download purplespider/silverstripe-clearer-thumbnails
More information about purplespider/silverstripe-clearer-thumbnails
Files in purplespider/silverstripe-clearer-thumbnails
Download purplespider/silverstripe-clearer-thumbnails
More information about purplespider/silverstripe-clearer-thumbnails
Files in purplespider/silverstripe-clearer-thumbnails
Vendor purplespider
Package silverstripe-clearer-thumbnails
Short Description Makes CMS and UploadField thumbnails clearer
License BSD-3-Clause
Homepage http://github.com/purplespider/silverstripe-clearer-thumbnails
Package silverstripe-clearer-thumbnails
Short Description Makes CMS and UploadField thumbnails clearer
License BSD-3-Clause
Homepage http://github.com/purplespider/silverstripe-clearer-thumbnails
Please rate this library. Is it a good library?
Informations about the package silverstripe-clearer-thumbnails
Clearer Thumbnails for Silverstripe
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.
Installation
- Install module via composer: `
- Perform a flush: `
- For Silverstripe 4: For sites with existing assets, run the generate-cms-thumbnails task to re-generate the thumbnails for the Files tab (otherwise no thumbnails will appear). `
Silverstripe 5 doesn't provide the MigrateFileTask anymore.
What exactly does this do?
It simply overrides some settings via a config file to:
- Change
ThumbnailGenerator
$method
fromFitMax
toFill
which avoids thumbnails being generated too small and then stretched. - Doubles the
UploadField
$thumbnail_width
and$thumbnail_height
from60
to120
to ensure thumbnails are crisp on HiDPI/Retina displays. - Increases the
Image
$asset_preview_width
and$asset_preview_height
to ensure image previews in the Files area are crisp on HiDPI/Retina displays.
Notes/Tips
- On sites with lots of images, the migration task is a resource intensive process which can take a while. Use
cpulimit
to limit the effect it has on the site, e.g.cpulimit -p 1234 -l 50
- Possible issue with assets in a symlinked location not getting updated via the migration task, suggest temporarily replacing the symlink with the assets dir before running the task if you experience this.
All versions of silverstripe-clearer-thumbnails with dependencies
PHP Build Version
Package Version
Requires
silverstripe/cms Version
^4 || ^5.0
The package purplespider/silverstripe-clearer-thumbnails contains the following files
Loading the files please wait ....