PHPackages                             chrometoaster/silverstripe-image-quality - 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. [Image &amp; Media](/categories/media)
4. /
5. chrometoaster/silverstripe-image-quality

ActiveSilverstripe-vendormodule[Image &amp; Media](/categories/media)

chrometoaster/silverstripe-image-quality
========================================

Adds Quality function to images

1.2.0(5mo ago)913.3k11BSD-3-ClausePHP

Since Jul 11Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/chrometoasters/silverstripe-image-quality)[ Packagist](https://packagist.org/packages/chrometoaster/silverstripe-image-quality)[ RSS](/packages/chrometoaster-silverstripe-image-quality/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (6)Used By (1)

SilverStripe Image Quality
==========================

[](#silverstripe-image-quality)

Introduction
------------

[](#introduction)

This extension adds a Quality method to images, that can be used to reduce the quality of images on a per-occurrence basis.

Higher quality images are larger, so reducing the quality will likely reduce the amount of data needed to be downloaded.

Requirements
------------

[](#requirements)

- SilverStripe 4, 5 or 6

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

[](#installation)

```
composer require chrometoaster/silverstripe-image-quality:~1.0
```

The instance gets automatically applied to `Silverstripe\Assets\Image` class.

Usage
-----

[](#usage)

You can define the image quality when outputting images in your templates by calling the `Quality(X)` method and passing in the desired image quality from 1 to 100.

It's highly recommended that Quality is always defined as the final image manipulation method - see the note below.

```

```

### Implementation notes

[](#implementation-notes)

SilverStripe applies each configured operation in order, generating a file for each operation.

This is why the Quality method cannot be used to raise the quality of image processing for the entire chain. Each operation is applied with the default quality, then the Quality method causes a larger file to be generated, containing the lower quality output from the previous operations.

This is also the reason why the Quality method must be the last in any chain; if it is not, then methods following Quality will act on a reduced quality image, but the output from those methods will be saved at the default quality, making the file both lower quality and larger than it would have been.

In theory, it would possible to control the image quality throughout the chain, but the way that SilverStripe caches intermediate results could cause unexpected side effects, as the quality of the image at intermediate stages would then depend on which method chain happened to render it first.

Licence
-------

[](#licence)

BSD-3-Clause

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance73

Regular maintenance activity

Popularity30

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~691 days

Total

5

Last Release

151d ago

### Community

Maintainers

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

---

Top Contributors

[![michalkleiner](https://avatars.githubusercontent.com/u/233342?v=4)](https://github.com/michalkleiner "michalkleiner (8 commits)")

---

Tags

cwpimage-manipulationsilverstripesilverstripe-4silverstripe-moduletemplateimagesilverstripequality

### Embed Badge

![Health badge](/badges/chrometoaster-silverstripe-image-quality/health.svg)

```
[![Health](https://phpackages.com/badges/chrometoaster-silverstripe-image-quality/health.svg)](https://phpackages.com/packages/chrometoaster-silverstripe-image-quality)
```

###  Alternatives

[heyday/silverstripe-responsive-images

Configure and send a series of image size options to the client without loading any resources until a media query can be executed.

5390.0k6](/packages/heyday-silverstripe-responsive-images)[unclecheese/silverstripe-image-optionset

Provides a list of selectable items that use images as the primary label instead of text.

139.3k2](/packages/unclecheese-silverstripe-image-optionset)[dnadesign/silverstripe-lazyloaded-image

Implements the LQIP (Low Quality Image Placeholder) pattern powered by lazysizes

1011.8k4](/packages/dnadesign-silverstripe-lazyloaded-image)

PHPackages © 2026

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