Download the PHP package tractorcow/silverstripe-image-formatter without Composer
On this page you can find all versions of the php package tractorcow/silverstripe-image-formatter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tractorcow/silverstripe-image-formatter
More information about tractorcow/silverstripe-image-formatter
Files in tractorcow/silverstripe-image-formatter
Package silverstripe-image-formatter
Short Description Programatically convert image formats
License BSD-3-Clause
Informations about the package silverstripe-image-formatter
Image formatter module
This module will let you transcode images on the fly in your templates.
Requirements
- Silverstripe 5.2+
Installation Instructions
- Install using composer
Usage
Conversions to webp
and avif
use a default quality setting of 75
and 50
respectively. You can update the
quality used via config:
(The conversion documented here leaves the quality of the generated images as is, which, at the standard quality of 90, results in larger images for webp and avif, which defeats the purpose of these formats.)
Disclaimer
Prior to Silverstripe 5.2, this module did override some internal core behaviour in order to support image formatting. All formatted images were public by default!
Since Silverstripe 5.2 it uses an improved version of the example from the documentation to convert images between formats.
License
Copyright (c) 2021, Damian Mooyman
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- The name of Damian Mooyman may not be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL