axllent/silverstripe-scaled-uploads

Automatically scale down and rotate uploaded images for SilverStripe

Installs: 11 238

Dependents: 5

Suggesters: 1

Stars: 21

Watchers: 2

Forks: 3

Open Issues: 0

Type:silverstripe-vendormodule

2.2.2 2019-01-18 23:10 UTC

README

An extension to automatically scale down all new uploaded images in SilverStripe and (optionally) compress all uploaded images (resample). If the uploaded image is larger than a preconfigured size, it will be scaled down. The extension also supports auto-rotation of JPG images eg: portrait images taken with digital cameras or cellphones.

It also supports custom folder configurations to allow for different settings based on the folder they are uploaded into.

Requirements

  • SilverStripe 4+
  • Exif support for auto-rotation

For SilverStripe 3, please refer to the SilverStripe3 branch.

Usage

Simply install the module. All images are (by default) scaled to a maximum size of 960px (width) X 800px (height), and auto-rotation (based on EXIF data) for JPG images is by default on.

Configuration

Please refer to the Configuration.md file for options.

Installation

composer require axllent/silverstripe-scaled-uploads