Releases: nystudio107/craft-imageoptimize
Releases · nystudio107/craft-imageoptimize
Version 1.4.21
Changed
- Show a warning if people try to add an OptimizedImages field in a Matrix block
Version 1.4.20
Added
- Allow for CLI processing of specific Asset Volumes via
image-optimize/optimize/create volumehandle
- Added
automaticallyResaveImageVariants
toconfig.php
to allow disabling of the automatic re-saving of Image Variants for people who want to do it manually via the CLI - Added a
.srcWebp()
method for OptimizedImages - Added an optional
width
parameter that can be passed into.src()
and.srcWebp()
- Added support for mostly deprecated
1x
,2x
, etc. srcsets by passing an optionaltrue
parameter to.srcsetWidth(XXX, true)
and.srcsetWidthWebp(XXX, true)
Changed
- Fix more deprecation errors from Craft CMS 3 RC 12
Version 1.4.19
Changed
- Fix deprecation errors from Craft CMS 3 RC 12 (which were causing slowdowns)
Version 1.4.18
Added
- Fix a division by 0 error with some custom Craft transforms when using Imgix as a transform method
Version 1.4.17
Added
- Added lightswitch controls to the OptimizedImages field that let you control what is displayed
Changed
- Ensure we handle all of the potential
$transform
types passed intoEVENT_GET_ASSET_URL
- Both
createColorPalette
andcreatePlaceholderSilhouettes
are now off by default when usingcraft.imageOptimize.createOptimizedImages()
via Twig, but can be overridden
Version 1.4.16
Added
- Added support for optional security token used to sign image URLs from Imgix
- Added
image-optimize/optimize/create
andimage-optimize/optimize/clear
console commands for command line Optimized Image Variant creation
Changed
- Display the non-webp version of an image when it exists, but the browser doesn't support displaying
.webp
- Handles error conditions with
filesize
better
Version 1.4.15
Changed
- Resave all asset volumes after the settings are changed (not just the Transform Method)
- Save the Optimized Image Variants via an async queue when possible
- Detect
gd
installation viafunction_exists
instead ofextension_loaded
- Handle protocol-relative siteUrls better
Version 1.4.14
Changed
- Fixed an issue where certain settings could not be saved via the AdminCP
- Check to ensure that
GD
is installed before attempting to generate silhouette placeholders - Show a warning on the Settings page if
GD
is not installed
Version 1.4.13
Changed
- Removed Edit Image button, since Craft CMS 3 now includes one in the Asset preview
Version 1.4.12
Changed
- Removed the
api-key
parameter from Imgix image transform URLs