Skip to content

Releases: nystudio107/craft-imageoptimize

Version 1.4.9

20 Jan 15:33
Compare
Choose a tag to compare

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

12 Jan 00:55
Compare
Choose a tag to compare

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

29 Dec 20:09
Compare
Choose a tag to compare

Changed

  • Fixed a regression that would cause issues with PHP 7.0 (but not later versions of PHP)

Version 1.4.6

27 Dec 14:43
Compare
Choose a tag to compare

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

22 Dec 16:07
Compare
Choose a tag to compare

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

19 Dec 22:33
Compare
Choose a tag to compare

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

19 Dec 17:33
Compare
Choose a tag to compare

Added

  • Image transforms that are scaled down >= 50% are now auto-sharpened (controllable via the autoSharpenScaledImages setting in config.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

15 Dec 20:41
Compare
Choose a tag to compare

Changed

  • Fixed an issue where .webp variants would not be created

Version 1.4.1

14 Dec 21:49
Compare
Choose a tag to compare

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

12 Dec 23:17
Compare
Choose a tag to compare

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 in config.php)
  • Don't create Optimized Image Variants if it means the original image would be up-scaled (controllable via the allowUpScaledImageVariants setting in config.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