Skip to content

Commit fd8bb14

Browse files
committed
Merge branch 'release/1.6.58' into v1
2 parents b98b5b9 + f14673c commit fd8bb14

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# ImageOptimize Changelog
22

3+
## 1.6.58 - 2025.02.06
4+
## Fixed
5+
* Reverted `srcset` width filtering ([#416](https://github.com/nystudio107/craft-imageoptimize/pull/416)) to address ([#418](https://github.com/nystudio107/craft-imageoptimize/issues/418))
6+
37
## 1.6.57 - 2025.01.13
48
## Fixed
59
* Don't try to apply filters to assets that are seemingly corrupt, and have a `0` width or `0` height ([#383](https://github.com/nystudio107/craft-imageoptimize/issues/383))
6-
* Fixed `srcset` width filtering ([](https://github.com/nystudio107/craft-imageoptimize/pull/416))
10+
* Fixed `srcset` width filtering ([#416](https://github.com/nystudio107/craft-imageoptimize/pull/416))
711

812
## 1.6.56 - 2024.10.21
913
## Changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nystudio107/craft-imageoptimize",
33
"description": "Automatically create & optimize responsive image transforms, using either native Craft transforms or a service like imgix, with zero template changes.",
44
"type": "craft-plugin",
5-
"version": "1.6.57",
5+
"version": "1.6.58",
66
"keywords": [
77
"craft",
88
"cms",

src/models/OptimizedImage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,8 @@ protected function getSrcsetSubsetArray(array $set, int $width, string $comparis
619619
return $subset;
620620
}
621621
// Sort the arrays by numeric key
622+
ksort($set, SORT_NUMERIC);
623+
// Sort the arrays by numeric key
622624
sort($this->variantSourceWidths, SORT_NUMERIC);
623625
foreach ($this->variantSourceWidths as $variantSourceWidth) {
624626
$match = false;

0 commit comments

Comments
 (0)