Skip to content

Commit

Permalink
Correctly look up "LensModel" in EXIF
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Dec 22, 2024
1 parent e44eca2 commit db057b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/img/io/ImageMetaData.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ public function exifData($tz= null) {

$data->withMake(null === ($l= self::lookup($raw, 'Make')) ? null : trim($l));
$data->withModel(null === ($l= self::lookup($raw, 'Model')) ? null : trim($l));
$data->withLensModel(null === ($l= self::lookup($raw, 'LensModel')) ? null : trim($l));
$data->withSoftware(null === ($l= self::lookup($raw, 'Software')) ? null : trim($l));

$exif= $raw['Exif_IFD_Pointer']['data'];
$data->withLensModel(null === ($l= self::lookup($exif, 'LensModel')) ? null : trim($l));

if ($sof= $this->segmentsOf(SOFNSegment::class)) {
$data->withWidth($sof[0]->width());
Expand Down

0 comments on commit db057b9

Please # to comment.