- Support PHP 7.0
- Refactor code directories.
- Cleanup Responsive Factory code.
- Add caching test.
- Bugfix for extension of cached files not correctly loading.
- Add
includeSource
parameter.
- Bugfix for invalid cache path when rebase was enabled.
- Bugfix for wrong composer sources.
- Bugfix for srcset not correctly rendering.
- Add
sizes
scaler. This scaler can be configured to generate a fixed set of images based on pre-defined widths, provided via thesizes
parameter. See the README for more information.
- Add
rebase
parameter. - Add
maxFileSize
parameter. - Add
maxWidth
parameter.
- Fix a bug so that unkown file exceptions are correctly thrown.
- Removed AMP dependencies.
- Temporary remove Amp because of BC breaking changes with each update.
- Add optimizer options support
- Add fixed amphp versions because of BC breaking changes in their library.
- Several bug fixes and optimizations when running enabling the
async
option.
- Add
async
option to downscale images in separate processes. PHP'spcntl
extension is required for this to work.
- Add simple construct for the ResponsiveFactory.
- Fixed bug with the cache not being searched in the public path.
- Update minimum requirements to PHP 7.1.
- Refactor scalers to only calculate file sizes and not handle image saving.
- Add
optimize
parameter to run image optimizers. Defaults tofalse
.
- Improve caching, scalers are now not used when images are already cached.
- Set default
minFileSize
to 5 KB.
- Add Scaler support
- Add FileSize scaler as default.
To use the old scaler:
$factory = new ResponsiveFactory(new DefaultConfigurator([
'scaler' => 'width',
]));
The new Scaler is called filesize
and set by default, this scaler differs from the width scaler because it scales down
based on file size instead of the width of an image.
$factory = new ResponsiveFactory(new DefaultConfigurator([
'scaler' => 'filesize',
]));
Note: the stepModifier
parameter is now used different, the higher this modifier, the more images will be generated.
- Use PSR naming standards.