thelogicstudio/silverstripe-resize-image

A Silverstripe extension to enforce maximum image upload dimensions.

Maintainers

Package info

github.com/thelogicstudio/silverstripe-resize-image

Type:silverstripe-vendormodule

pkg:composer/thelogicstudio/silverstripe-resize-image

Statistics

Installs: 103

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.0 2025-11-18 21:16 UTC

This package is auto-updated.

Last update: 2026-02-18 21:57:56 UTC


README

This package implements a maximum image upload size. If uploaded images are larger than the defined dimensions, the original will be reduced in size. By default this limits to 2000px in either dimension.

Prerequisites

This uses the command line ImageMagick convert command. If that isn't available to PHP's exec() function, this extension will not work.

Usage

> composer require thelogicstudio/silverstripe-resize-image

Configuration

Configuration can be updated in your assets.yml (or any config file). To change your maximum dimensions to 1000px:

TheLogicStudio\ResizeImages\ResizeImages:
  maximum_width: 1000
  maximum_height: 1000