PHPackages                             littlegiant/silverstripe-cms-image-dimensions - 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. littlegiant/silverstripe-cms-image-dimensions

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

littlegiant/silverstripe-cms-image-dimensions
=============================================

3.2.1(7y ago)41.9k↓83.3%1PHPPHP &gt;=7.1

Since Jun 20Pushed 7y ago3 watchersCompare

[ Source](https://github.com/littlegiant/silverstripe-cms-image-dimensions)[ Packagist](https://packagist.org/packages/littlegiant/silverstripe-cms-image-dimensions)[ RSS](/packages/littlegiant-silverstripe-cms-image-dimensions/feed)WikiDiscussions master Synced yesterday

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

SilverStripe CMS Image Dimensions
=================================

[](#silverstripe-cms-image-dimensions)

Easily add image dimensions to image fields and enforce maximum sizes for uploads to those fields through configuration.

Provides a single source of image dimensions for the user in the CMS

[![CMS Image Dimensions](https://github.com/littlegiant/silverstripe-cms-image-dimensions/raw/master/images/cms-image-dimensions.png)](https://github.com/littlegiant/silverstripe-cms-image-dimensions/blob/master/images/cms-image-dimensions.png)[![CMS Image Dimensions on object](https://github.com/littlegiant/silverstripe-cms-image-dimensions/raw/master/images/cms-image-dimensions-on-object.png)](https://github.com/littlegiant/silverstripe-cms-image-dimensions/blob/master/images/cms-image-dimensions-on-object.png)

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

[](#installation)

Installation via composer

```
$ composer require littlegiant/silverstripe-cms-image-dimensions

```

Usage
-----

[](#usage)

Set definitions in a yml config and add that configuration to the images which you want it to apply to

```
LittleGiant\CmsImageDimensions\ImageDimensionsProvider:
  max_size: 512K
  definitions:
    blog-post-featured-image:
      name: Blog Post Featured Image
      description: Featured image on your blog post.
      min_width: 1024
      min_height: 768
      validate_dimensions: true
      aspect_ratio: 4:3
      validate_aspect_ratio: true
      max_size: 1M # override default of 512KB to allow larger images

SilverStripe\Blog\Model\BlogPost:
  image_dimensions:
    FeaturedImage: blog-post-featured-image
```

Contributing
------------

[](#contributing)

### Code guidelines

[](#code-guidelines)

This project follows the standards defined in:

- [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md)
- [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md)
- [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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 ~9 days

Recently: every ~21 days

Total

11

Last Release

2784d ago

Major Versions

1.1 → 2.02018-07-02

2.1 → 3.02018-07-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/a499234983660ff4b31982de5e17e147544b717227fc4f7245070462fd03cbca?d=identicon)[stevie-mayhew](/maintainers/stevie-mayhew)

![](https://www.gravatar.com/avatar/13a1b78f31cdad3eecbe5d11aadc3f5c527f76cde37710ab91dc03c42565f152?d=identicon)[RyanPotter](/maintainers/RyanPotter)

### Embed Badge

![Health badge](/badges/littlegiant-silverstripe-cms-image-dimensions/health.svg)

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

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5163.4M1.3k](/packages/silverstripe-cms)[jonom/focuspoint

Smarter automatic image cropping for Silverstripe

108645.6k49](/packages/jonom-focuspoint)[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)[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)
