Just wanted to report bug - in latest Kirby version (4.7.0) after adding multiple images Kirby was throwing error:
code: 0
details: null
exception: "TypeError"
file: "/kirby/src/Image/Exif.php"
line: 38
message: "Cannot assign array to property Kirby\\Image\\Exif::$iso of type ?string"
status: "error"
So the fix was to replace in /src/Image/Exif.php in line 38:
$this->iso = $this->data['ISOSpeedRatings'] ?? null;
with
$iso = $this->data['ISOSpeedRatings'] ?? null;
if (is_array($iso)) {
$iso = (string) reset($iso); // take the first value if it's an array
}
$this->iso = is_null($iso) ? null : (string) $iso;