Addon for responsive images module to use the img/srcset standard
srcset
extensionAddon for the responsive images module to use the img/srcset standard
By Stan Hutcheon - Bigfork Ltd
composer require "stnvh/silverstripe-responsive-images-srcset" "0.x"
Clone this repo into the root of your silverstripe installation folder.
See the responsive images module usage for basic config.
The option to automatically generate retina images has been added for ease. It can be enabled via yml:
ResponsiveImageExtension:
sets:
GallerySet:
method: CroppedFocusedImage
sizes:
- {query: "(min-width: 640px)", size: 820x640}
- {query: "(min-width: 940px)", size: 1128x768}
default_size: 960x480
retina: true
After installing via composer, you must /dev/build and flush
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem