Skip to content

Releases: nystudio107/craft-imageoptimize

Version 1.4.21

27 Feb 18:51
Compare
Choose a tag to compare

Changed

  • Show a warning if people try to add an OptimizedImages field in a Matrix block

Version 1.4.20

27 Feb 15:39
Compare
Choose a tag to compare

Added

  • Allow for CLI processing of specific Asset Volumes via image-optimize/optimize/create volumehandle
  • Added automaticallyResaveImageVariants to config.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 optional true parameter to .srcsetWidth(XXX, true) and .srcsetWidthWebp(XXX, true)

Changed

  • Fix more deprecation errors from Craft CMS 3 RC 12

Version 1.4.19

23 Feb 15:33
Compare
Choose a tag to compare

Changed

  • Fix deprecation errors from Craft CMS 3 RC 12 (which were causing slowdowns)

Version 1.4.18

19 Feb 19:41
Compare
Choose a tag to compare

Added

  • Fix a division by 0 error with some custom Craft transforms when using Imgix as a transform method

Version 1.4.17

18 Feb 03:36
Compare
Choose a tag to compare

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 into EVENT_GET_ASSET_URL
  • Both createColorPalette and createPlaceholderSilhouettes are now off by default when using craft.imageOptimize.createOptimizedImages() via Twig, but can be overridden

Version 1.4.16

15 Feb 17:55
Compare
Choose a tag to compare

Added

  • Added support for optional security token used to sign image URLs from Imgix
  • Added image-optimize/optimize/create and image-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

14 Feb 17:04
Compare
Choose a tag to compare

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 via function_exists instead of extension_loaded
  • Handle protocol-relative siteUrls better

Version 1.4.14

10 Feb 04:33
Compare
Choose a tag to compare

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

05 Feb 14:05
Compare
Choose a tag to compare

Changed

  • Removed Edit Image button, since Craft CMS 3 now includes one in the Asset preview

Version 1.4.12

01 Feb 18:54
Compare
Choose a tag to compare

Changed

  • Removed the api-key parameter from Imgix image transform URLs