Skip to content

Commit

Permalink
Ensure lens model is always set, even w/o XMP
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 1, 2025
1 parent f1abe4a commit 7f2abc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/de/thekid/dialog/processing/Images.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public function meta(File $source): array<string, mixed> {
foreach ($xmp[0]->document()->getElementsByTagNameNS(self::RDF, 'Description')[0]->attributes as $attr) {
$r[lcfirst($attr->name)]= $attr->value;
}
$r['lensModel']??= $r['lens'] ?? '(Unknown Lens)';
}
$r['lensModel']??= $r['lens'] ?? '(Unknown Lens)';
return $r;
} finally {
$source->close();
Expand Down

0 comments on commit 7f2abc6

Please sign in to comment.