Releases: WPP-Public/akqa-nz-silverstripe-responsive-images
Releases · WPP-Public/akqa-nz-silverstripe-responsive-images
3.0.0
Fixed obsolete 'setWidth' method on ImageManipulation
Allow template overrides for individual image sets
Merge pull request #25 from spaceship-operators/feature/image-template Allow template overrides for individual image sets
Fix: Extension should also be applied to DBFile
Merge pull request #29 from kinglozzer/dbfile-extension FIX: Extension should also be applied to DBFile
2.0.1
1.0.1: Fix configuration inconsistent with image resize API
Merged changes into the 1.0
branch:
- Work with higher level resize methods instead of getFormattedImage (#18)
SS4 compatibility
2.0.0 Merge branch 'bigfork-4-compat'
1.0.0: Picturefill 3.x, improved yaml config
- Upgrade to picturefill v3.0.2
- Change YAML format to allow more than 2 arguments to be passed to image processing methods (useful for methods such as PaddedImage)
- Changed YAML format for "sizes" to "": instead of - {query: "", size: "AxB" }
- Added namespace to extension class
Big thanks to @kinglozzer for all of the work in this release.
Upgrading from 0.x
Compare usage section of the readme between 0.1.0/0.1.1 and 1.0.0 for more examples.
-
Use namespaced class in config
Heyday\ResponsiveImages\ResponsiveImageExtension
-
Rename
sizes
key in responsive set definitions toarguments
-
Update children of the
sizes
key to make the query the key, and replace the dimensions strings with an array with one or two elements:sizes: - {query: "(min-width: 400px)", size: 300x300} - {query: "(min-width: 200px)", size: 100}
becomes
arguments: "(min-width: 400px)": [300, 300] "(min-width: 200px)": [100]
0.2.0: Picturefill 2.x
This is a late release of #6. Note this release includes breaking changes:
- Picturefill javascript library updated from 1.x to 2.x
- Breaking: members of the
sizes
array in the config (ResponsiveImageExtension.sets.[SetName].sizes
) now rely on definition order to match. Upgrading from 0.1.x requires reversing the members of this array to achieve the same behaviour (example).