This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi
I have created a plugin that automatically resizes images and adds srcset
and sizes
attributes.
If any one is interested in testing it the source code is available on GitHub: https://github.com/OFFLINE-GmbH/oc-responsive-images-plugin
Feedback and bug reports are very welcome!
Chagenlog, Dec 19th
- Fixed handling of incompatible response types
- Optimized caching
- Added config options for image sizes
Chagenlog, Dec 22th
Now also available from the marketplace: http://octobercms.com/plugin/offline-responsiveimages
Test results
I have tested this plugin on a page with 20 hd wallpapers from pixabay.
Viewport width | Transferred file size |
---|---|
1920 px | 21.8 MB |
1024 px | 3.1 MB |
768 px | 2.0 MB |
400 px | 0.8 MB |
Last updated
Thanks! Make sure to use the latest version from github.com. For a changelog see my first post above.
1-3 of 3