PHPackages                             purplespider/silverstripe-clearer-thumbnails - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. purplespider/silverstripe-clearer-thumbnails

ActiveSilverstripe-vendormodule

purplespider/silverstripe-clearer-thumbnails
============================================

Makes CMS and UploadField thumbnails clearer

1.0.3(6mo ago)02.1k2BSD-3-Clause

Since Aug 6Pushed 5mo ago4 watchersCompare

[ Source](https://github.com/purplespider/silverstripe-clearer-thumbnails)[ Packagist](https://packagist.org/packages/purplespider/silverstripe-clearer-thumbnails)[ Docs](http://github.com/purplespider/silverstripe-clearer-thumbnails)[ RSS](/packages/purplespider-silverstripe-clearer-thumbnails/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

Clearer Thumbnails for Silverstripe
===================================

[](#clearer-thumbnails-for-silverstripe)

This module fixes an [issue](https://github.com/silverstripe/silverstripe-asset-admin/pull/1224#issuecomment-894128575) in Silverstripe 4, 5 and 6 which results in particularly tall or wide images having pixelated/blurry thumbnails in the CMS, particularly for `UploadFields`.

Before:

[![Screenshot 2021-08-06 at 09 24 31@2x](https://user-images.githubusercontent.com/329880/128480831-0e9bcbf2-e2f1-4b4d-a7ac-1ea93fdcee2b.png)](https://user-images.githubusercontent.com/329880/128480831-0e9bcbf2-e2f1-4b4d-a7ac-1ea93fdcee2b.png)

After:

[![Screenshot 2021-08-06 at 09 29 37@2x](https://user-images.githubusercontent.com/329880/128481538-4e60c3b8-8a26-4042-979d-f4a0ad97a506.png)](https://user-images.githubusercontent.com/329880/128481538-4e60c3b8-8a26-4042-979d-f4a0ad97a506.png)

It also increases the size of thumbnail images to ensure they remain crips on HiDPI/Retina displays.

Installation
------------

[](#installation)

1. Install module via composer:

```
composer require purplespider/silverstripe-clearer-thumbnails "1.*"

```

2. Perform a flush:

```
https://www.example.com?flush=1

```

3. 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).

```
php vendor/silverstripe/framework/cli-script.php dev/tasks/MigrateFileTask only=generate-cms-thumbnails

```

Silverstripe 5 doesn't provide the MigrateFileTask anymore.

What exactly does this do?
--------------------------

[](#what-exactly-does-this-do)

It simply overrides some settings via a [config file](https://github.com/purplespider/silverstripe-clearer-thumbnails/blob/master/_config/clear-thumbs.yml) to:

1. Change `ThumbnailGenerator` `$method` from `FitMax` to `Fill` which avoids thumbnails being generated too small and then stretched.
2. Doubles the `UploadField` `$thumbnail_width` and `$thumbnail_height` from `60` to `120` to ensure thumbnails are crisp on HiDPI/Retina displays.
3. 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
----------

[](#notestips)

- 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.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance69

Regular maintenance activity

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~501 days

Total

4

Last Release

186d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/adc769752595fb9b61ae35f2d1a6cad4da9845a7a536fb725d93e6d9ebc4d594?d=identicon)[purplespider](/maintainers/purplespider)

---

Top Contributors

[![purplespider](https://avatars.githubusercontent.com/u/329880?v=4)](https://github.com/purplespider "purplespider (13 commits)")[![xini](https://avatars.githubusercontent.com/u/1152403?v=4)](https://github.com/xini "xini (2 commits)")[![dizzystuff](https://avatars.githubusercontent.com/u/576903?v=4)](https://github.com/dizzystuff "dizzystuff (1 commits)")

---

Tags

silverstripeThumbnailsuploadfield

### Embed Badge

![Health badge](/badges/purplespider-silverstripe-clearer-thumbnails/health.svg)

```
[![Health](https://phpackages.com/badges/purplespider-silverstripe-clearer-thumbnails/health.svg)](https://phpackages.com/packages/purplespider-silverstripe-clearer-thumbnails)
```

###  Alternatives

[bummzack/sortablefile

An extension for SilverStripe that adds sorting to UploadField.

70606.0k51](/packages/bummzack-sortablefile)[colymba/gridfield-gallery-theme

SilverStripe 3 GridField component adding file or image thumbnail gallery view

157.1k1](/packages/colymba-gridfield-gallery-theme)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
