Releases: nystudio107/craft-imageoptimize
Releases · nystudio107/craft-imageoptimize
Release list
1.6.54
Fixed
- Fixed an issue where the
.imgTag()and.pictureTag()would output and invalidstyleattribute for lazy loaded images (#400)
5.0.0
5.0.0-beta.2
Added
- Added the ability to pass in a config array to
.imgTag(),.pictureTag()and.linkPreloadTag()
Changed
- Changed
.loading()→.loadingStrategy(),.artDirection()→addSourceFrom()
4.0.7
Added
- Added the ability to pass in a config array to
.imgTag(),.pictureTag()and.linkPreloadTag()
Changed
- Changed
.loading()→.loadingStrategy(),.artDirection()→addSourceFrom()
1.6.53
Added
- Added the ability to pass in a config array to
.imgTag(),.pictureTag()and.linkPreloadTag()
Changed
- Changed
.loading()→.loadingStrategy(),.artDirection()→addSourceFrom()
5.0.0-beta.1
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)
4.0.6
Added
- Added a
--queueoption to theimage-optimize/optimize/createconsole command if you want to defer the image generation to be run via queue job, rather than immediately via the console command - Add
phpstanandecscode linting - Add
code-analysis.yamlGitHub action - 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)
- Updated docs to use node 20 & a new sitemap plugin
- Switch over to Vite
^5.0.0& Node^20.0.0for the buildchain - PHPstan code cleanup
- ECS code cleanup
1.6.52
Added
- Added a
--queueoption to theimage-optimize/optimize/createconsole command if you want to defer the image generation to be run via queue job, rather than immediately via the console command - Add
phpstanandecscode linting - Add
code-analysis.yamlGitHub action - 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)
- Updated docs to use node 20 & a new sitemap plugin
- Switch over to Vite
^5.0.0& Node^20.0.0for the buildchain - PHPstan code cleanup
- ECS code cleanup
4.0.5
Changed
- Automate release generation via GitHub action
- Add versioning to the docs
Fixed
1.6.51
Changed
- Automate release generation via GitHub action
- Add versioning to the docs
Fixed
- Remove the old Craft generated transform that's still sitting in the temp directory (#380)