PHPackages                             zauberfisch/silverstripe-better-image - 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. zauberfisch/silverstripe-better-image

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

zauberfisch/silverstripe-better-image
=====================================

Adds additional methods to the SilverStripe Image class

47521[3 PRs](https://github.com/Zauberfisch/silverstripe-better-image/pulls)PHP

Since Apr 28Pushed 10y ago2 watchersCompare

[ Source](https://github.com/Zauberfisch/silverstripe-better-image)[ Packagist](https://packagist.org/packages/zauberfisch/silverstripe-better-image)[ RSS](/packages/zauberfisch-silverstripe-better-image/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SilverStripe Image improvements
===============================

[](#silverstripe-image-improvements)

Work in progress
----------------

[](#work-in-progress)

This module is still work in progress. This module exists because of missing features in SilverStripe and might change its API or be completely obsolete once Image is re-factored.

Current Features
----------------

[](#current-features)

- SetCroppedSize - more consistent name, allows to specify crop origin
- SetMaxRatioSize - only SetRatioSize if image to large
- SetQuality - set jpeg quality
- SetGreyscale - greyscale image
- GetAsDataURI - returns the image as base64 data URI string

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

[](#installation)

#### Requirements

[](#requirements)

- php GD (ImagickBackend not implemented yet)

#### Installing the module

[](#installing-the-module)

1. Install the module using composer or download and place in your project folder
2. Run `?flush=1`

Usage
-----

[](#usage)

```
$Image.SetCroppedSize(300, 300, 'left', 'top')
$Image.SetMaxRatioSize(1000, 1000)
$Image.SetQuality(75)
$Image.SetGreyscale

$Image.SetMaxRatioSize(1000, 1000).SetQuality(75)

```

License
-------

[](#license)

```
Copyright (c) 2015, Zauberfisch
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
	* Redistributions of source code must retain the above copyright
	  notice, this list of conditions and the following disclaimer.
	* Redistributions in binary form must reproduce the above copyright
	  notice, this list of conditions and the following disclaimer in the
	  documentation and/or other materials provided with the distribution.
	* Neither the name Zauberfisch nor the names of other contributors may
	  be used to endorse or promote products derived from this software
	  without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL  BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/186158?v=4)[zauberfisch](/maintainers/zauberfisch)[@Zauberfisch](https://github.com/Zauberfisch)

---

Top Contributors

[![Zauberfisch](https://avatars.githubusercontent.com/u/186158?v=4)](https://github.com/Zauberfisch "Zauberfisch (3 commits)")

### Embed Badge

![Health badge](/badges/zauberfisch-silverstripe-better-image/health.svg)

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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