kinglozzer / silverstripe-inline-image-quality
Allows setting image quality on a per-image basis in templates.
Installs: 122
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
This package is auto-updated.
Last update: 2020-02-04 12:32:31 UTC
README
Please use https://github.com/chrometoasters/silverstripe-image-quality instead
SilverStripe inline image quality
Allows setting image quality on a per-image basis in templates.
Installation
composer require kinglozzer/silverstripe-inline-image-quality:^1
Usage
Use with .Quality()
in templates, passing a number between 0 and 100. For example:
<!-- Max image quality --> {$CarouselImage.Quality(100).Fill(1280, 480)} <!-- Low image quality --> {$ObscuredImage.Quality(5).Fill(350, 350)}