ImageOptimize
Version 5.0.7
February 13, 2025
Fixed
- Fixed an issue where an exception could be thrown using the default "shortcut" syntax due to a regression (#422)
Version 5.0.6
February 12, 2025
Added
- Added the
.placeholder('none')parameter to allow specifying that no placeholder background image CSS should be used for lazy loaded images (useful for transparent PNGs) (#410)
Changed
- Update buildchain to Vite 6 & Tailwind CSS 4
Version 5.0.3
October 21, 2024
Version 5.0.1
May 9, 2024
Fixed
- Fixed an issue where field content was not propagated to other sites on multi-site installs, causing missing images
- Fixed an issue where the
.imgTag()and.pictureTag()would output and invalidstyleattribute for lazy loaded images (#400) - Fixed an issue where the Subpath wasn't being included for remote volumes like S3 & Google Cloud (#403)
Version 5.0.0
April 15, 2024
Added
- Stable release for Craft CMS 5
Version 5.0.0-beta.2
April 4, 2024
Added
- Added the ability to pass in a config array to
.imgTag(),.pictureTag()and.linkPreloadTag()
Changed
- Changed
.loading()→.loadingStrategy(),.artDirection()→addSourceFrom()
Version 5.0.0-beta.1
April 2, 2024
Added
- Initial Craft CMS 5 compatibility
- Add
.imgTag()to theOptimizedImagemodel, which generates a complete<img>tag from theOptimizedImage - Add
.pictureTag()to theOptimizedImagemodel, which generates a complete<picture>tag from theOptimizedImage - Add
.linkPreloadTag()to theOptimizedImagemodel, which generates a complete<link rel="preload">tag from theOptimizedImage - Add
craft.imageOptimize.renderLazySizesJs()to render the LazySizes JavaScript for lazy loading images - Add
craft.imageOptimize.renderLazySizesFallbackJs()to render the LazySizes JavaScript with a support script that uses LazySizes as a fallback for browsers that don't support theloadingproperty
Changed
- Added PDF to the Ignore Files field settings (#364)