PHPackages                             kinglozzer/silverstripe-tinypng - 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. kinglozzer/silverstripe-tinypng

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

kinglozzer/silverstripe-tinypng
===============================

3.0.2(4y ago)34.0k6BSD-3-ClausePHPCI failing

Since Jan 13Pushed 4y ago3 watchersCompare

[ Source](https://github.com/kinglozzer/silverstripe-tinypng)[ Packagist](https://packagist.org/packages/kinglozzer/silverstripe-tinypng)[ Docs](https://github.com/kinglozzer/silverstripe-tinypng)[ RSS](/packages/kinglozzer-silverstripe-tinypng/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (16)Used By (0)

SilverStripe TinyPNG
====================

[](#silverstripe-tinypng)

An extension to SilverStripe's `Image` class to integrate with the [TinyPNG API](https://tinypng.com/developers).

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

[](#installation)

With composer:

```
composer require kinglozzer/silverstripe-tinypng ^3.0

```

Usage
-----

[](#usage)

Add your TinyPNG API key to your `_config.yml`:

```
Kinglozzer\SilverStripeTinyPng\ImageExtension:
  tinypng_api_key: 'xxxx_yyyy_zzzz'
```

Add the `Compressed` method to your templates when outputting images:

```
{$Image.CroppedImage(150, 300).Compressed}

```

**NOTE:** `Compressed` must be the last modification you call on your image - otherwise you’ll compress an image, then resample it again afterwards, potentially undo-ing the compression.

If you set an invalid API key, or exceed your monthly API allowance, then a warning will be shown in dev/test mode. In live mode compression will (intentionally) silently fail and output the un-compressed image, but will still log a message via the Logging API.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 87% 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 ~175 days

Recently: every ~401 days

Total

15

Last Release

1680d ago

Major Versions

0.1.x-dev → 1.0.02017-05-15

1.0.1 → 2.0.02017-05-15

2.0.1 → 3.0.02018-08-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/203294386?v=4)[-&gt; lozcalver](/maintainers/kinglozzer)[@kinglozzer](https://github.com/kinglozzer)

---

Top Contributors

[![lozcalver](https://avatars.githubusercontent.com/u/1655548?v=4)](https://github.com/lozcalver "lozcalver (20 commits)")[![nfauchelle](https://avatars.githubusercontent.com/u/1188162?v=4)](https://github.com/nfauchelle "nfauchelle (2 commits)")[![bummzack](https://avatars.githubusercontent.com/u/1006185?v=4)](https://github.com/bummzack "bummzack (1 commits)")

---

Tags

imagesilverstripecompresstinypng

### Embed Badge

![Health badge](/badges/kinglozzer-silverstripe-tinypng/health.svg)

```
[![Health](https://phpackages.com/badges/kinglozzer-silverstripe-tinypng/health.svg)](https://phpackages.com/packages/kinglozzer-silverstripe-tinypng)
```

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

5387.7k6](/packages/heyday-silverstripe-responsive-images)[schmitzal/tinyimg

Image compression for all pngs and jpgs uploaded to the backend (using the tinypng API)

16125.5k](/packages/schmitzal-tinyimg)[axllent/silverstripe-image-optimiser

Automatically optimise all uploaded &amp; resampled images in Silverstripe

1118.4k2](/packages/axllent-silverstripe-image-optimiser)[unclecheese/silverstripe-image-optionset

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

139.1k2](/packages/unclecheese-silverstripe-image-optionset)[chrometoaster/silverstripe-image-quality

Adds Quality function to images

1013.0k1](/packages/chrometoaster-silverstripe-image-quality)[dnadesign/silverstripe-lazyloaded-image

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

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

PHPackages © 2026

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