Download the PHP package sunnysideup/silverstripe-scaled-uploads without Composer
On this page you can find all versions of the php package sunnysideup/silverstripe-scaled-uploads. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sunnysideup/silverstripe-scaled-uploads
More information about sunnysideup/silverstripe-scaled-uploads
Files in sunnysideup/silverstripe-scaled-uploads
Package silverstripe-scaled-uploads
Short Description Automatically scale down and rotate uploaded images for Silverstripe. This module is based on axllent's version.
License MIT
Homepage https://github.com/sunnysideup/silverstripe-scaled-uploads
Informations about the package silverstripe-scaled-uploads
Automatically scale down uploaded images for Silverstripe
Reduce your footprint!
For all newly uploaded images in Silverstripe, this extension will automatically scale down (reduce width / height), compress, and convert them to webp to ensure your images are as light as possible, without significantly affecting quality.
history
This module was originally created by Axllent. We rewrote it to match our needs and it ended up so different now from the original module that our pull request did much sense anymore.
Requirements
- Silverstripe ^4.0 || ^5.0
Usage
Simply install the module and then set your own limits. For setting your limtis please refer to the Configuration.md file.
To use the functionality somewhere else, you can do something like this:
Installation
Batch process existing images
If you would like to batch process existing images then you can use the Resize All Images Module that extends this module.
Providing more guidance to the user when uploading images
Use the Perfect CMS Images Module to provide more guidance to the user when uploading images.
Rotation
This extension no longer supports auto-rotation of JPG images (i.e. portrait images taken with digital cameras or cellphones).
However, this should now also be part of Silverstripe core functionality if you are using ImageMagick instead of GD - see vendor/silverstripe/assets/src/InterventionBackend.php:278
(not sure if or how this works).