PHPackages                             hudhaifas/silverstripe-squareimage - 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. hudhaifas/silverstripe-squareimage

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

hudhaifas/silverstripe-squareimage
==================================

Manipulates a square image with the background color extracted from the image itself.

5.x-dev(1y ago)01.2k1MITPHPPHP &gt;=5.6.0

Since Jul 6Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (1)

SilverStripe Square Image
-------------------------

[](#silverstripe-square-image)

[![Latest Stable Version](https://camo.githubusercontent.com/a42e1b2863c0898c149dd20f1d2dceb91a2107fbd31804a69cd98017eba5614d/68747470733a2f2f706f7365722e707567782e6f72672f6875646861696661732f73696c7665727374726970652d737175617265696d6167652f762f737461626c65)](https://packagist.org/packages/hudhaifas/silverstripe-squareimage) [![Total Downloads](https://camo.githubusercontent.com/97605251072ff22f477ef1985f2de827dafa1d36daba3ad685357d95572e1f67/68747470733a2f2f706f7365722e707567782e6f72672f6875646861696661732f73696c7665727374726970652d737175617265696d6167652f646f776e6c6f616473)](https://packagist.org/packages/hudhaifas/silverstripe-squareimage) [![Latest Unstable Version](https://camo.githubusercontent.com/09ee9ab7bd54b0328fb775916937d08d094c38591096a2af2f7ab9c3847cd618/68747470733a2f2f706f7365722e707567782e6f72672f6875646861696661732f73696c7665727374726970652d737175617265696d6167652f762f756e737461626c65)](https://packagist.org/packages/hudhaifas/silverstripe-squareimage) [![License](https://camo.githubusercontent.com/f209859e42c6b7844bda44c0031d03df6bae4eb67bdf5da064fccdf88b2de29a/68747470733a2f2f706f7365722e707567782e6f72672f6875646861696661732f73696c7665727374726970652d737175617265696d6167652f6c6963656e7365)](https://packagist.org/packages/hudhaifas/silverstripe-squareimage)

Manipulates a square image with the background color extracted from the image itself.

### Features

[](#features)

- Provide a square padded image with the most color as background.

Usage
-----

[](#usage)

### Requirements

[](#requirements)

- SilverStripe Framework 5.x
- SilverStripe CMS 5.x

### Installation

[](#installation)

- Install the module through composer: `$ composer require hudhaifas/silverstripe-squareimage`
- Run dev/build

### License

[](#license)

```
MIT License

Copyright (c) 2018 Hudhaifa Shatnawi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without
limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions
of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT,  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance48

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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.

###  Release Activity

Cadence

Every ~2485 days

Total

2

Last Release

388d ago

Major Versions

4.x-dev → 5.x-dev2025-04-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5335447?v=4)[Hudhaifa](/maintainers/hudhaifas)[@hudhaifas](https://github.com/hudhaifas)

---

Top Contributors

[![hudhaifas](https://avatars.githubusercontent.com/u/5335447?v=4)](https://github.com/hudhaifas "hudhaifas (13 commits)")

---

Tags

imagesilverstripeFitsquarepad

### Embed Badge

![Health badge](/badges/hudhaifas-silverstripe-squareimage/health.svg)

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

###  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)[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)
