- Allow for empty
alt
tags for screen readers as per WCAG (411)
- Don't add image variants if no variant creator for them exists (#410)
- Fix a visual issue with the sizing arrows for Optimized Image fields
- Don't apply background placeholder CSS to images that may be transparent like SVGs or GIFs (#410)
- Fixed an issue where
srcsetMaxWidth()
could return incorrect results (#407) - Fixed an issue where the data-uri for inline SVG styles were incorrect in some browsers because the spaces were not URL-encoded (#408)
- 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 invalidstyle
attribute for lazy loaded images (#400) - Fixed an issue where the Subpath wasn't being included for remote volumes like S3 & Google Cloud (#403)
- Stable release for Craft CMS 5
- Added the ability to pass in a config array to
.imgTag()
,.pictureTag()
and.linkPreloadTag()
- Changed
.loading()
→.loadingStrategy()
,.artDirection()
→addSourceFrom()
- Initial Craft CMS 5 compatibility
- Add
.imgTag()
to theOptimizedImage
model, which generates a complete<img>
tag from theOptimizedImage
- Add
.pictureTag()
to theOptimizedImage
model, which generates a complete<picture>
tag from theOptimizedImage
- Add
.linkPreloadTag()
to theOptimizedImage
model, 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 theloading
property
- Added PDF to the Ignore Files field settings (#364)