Releases: nystudio107/craft-imageoptimize
Releases · nystudio107/craft-imageoptimize
Version 1.4.9
Added
- Added an Edit Image button to the Optimized Images field view
Changed
- Fixed
getWebPUrl()
for the Imgix image transform driver - Fixed an issue where image uploads/changes would fail if you had an invalid or non-existent
activeImageVariantCreators
set - Fixed an issue with protocol-relative siteUrls
Version 1.4.8
Changed
- Fixed a flaw in the default aspect ratios
- Fixed Focal Point resaving issue
- Resaving Optimized Image Variants after making field changes should be quicker now
Version 1.4.7
Changed
- Fixed a regression that would cause issues with PHP 7.0 (but not later versions of PHP)
Version 1.4.6
Changed
- Handle the case of no Optimize Image Variants being created due to upscaling by just returning the original image
- Made the documentation on the OptimizedImages Field more clear, in that it needs to be added to an Asset Volume's layout
Version 1.4.5
Added
- Added
.getMaxSrcsetWidth()
to work around issues with<img srcset>
choosing sizes larger than are available - Added a max size of 30K for generated silhouette SVGs, at which point it returns a simple SVG box
Changed
- Better exception handling
Version 1.4.4
Added
- Image variant creators now clean up after themselves when an Asset transform is deleted
Changed
- ImageOptimize now requires at least Craft CMS 3 RC3 or later
Version 1.4.3
Added
- Image transforms that are scaled down >= 50% are now auto-sharpened (controllable via the
autoSharpenScaledImages
setting inconfig.php
) - It's now possible to set the default aspect ratios in the
config.php
Changed
- No longer possible delete the last Optimized Image variant
- At least one Optimized Image variant will always be present
Version 1.4.2
Changed
- Fixed an issue where
.webp
variants would not be created
Version 1.4.1
Changed
- Re-create the Responsive Image Variants when an Asset is replaced
- Handle cache busting for the Responsive Image Variants by appending an
?mtime=
string to the URL - Better display of image variants when no variants are created
- No longer throws errors if you don't have the an image variant creator installed
- Wrap URLs and data returned to templates with
Template::raw()
so they won't be HTML entity encoded by default
Version 1.4.0
Added
- Added
craft.imageOptimize.createOptimizedImages
to allow for the dynamic creation of Optimized Image variants - Added
craft.imageOptimize.placeholderBox
to create a transparent SVG placeholder box of an arbitrary size and color - Automatically reduce the quality of retina images (controllable via the
lowerQualityRetinaImageVariants
setting inconfig.php
) - Don't create Optimized Image Variants if it means the original image would be up-scaled (controllable via the
allowUpScaledImageVariants
setting inconfig.php
) - Purge URLs for assets that are deleted from services like Imgix
Changed
- Fixed an issue where deleted Optimized Image Variant blocks would cause an error once saved
- Changed the default
optipng
compression to-o3
so the compression time is more reasonable - Updated README.md to reflect the new features