axllent/silverstripe-scaled-uploads

Automatically scale down and rotate uploaded images for Silverstripe

Installs: 62 864

Dependents: 8

Suggesters: 1

Security: 0

Stars: 23

Watchers: 4

Forks: 7

Open Issues: 0

Type:silverstripe-vendormodule

2.3.6 2024-11-15 03:00 UTC

This package is auto-updated.

Last update: 2024-11-15 03:02:27 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 pre-configured 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.0 || ^5.0
  • 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