Rework meta data display on photo page #45

Merged
minnozz merged 5 commits from photo-page into master 2024-01-13 17:23:06 +01:00
Showing only changes of commit b48f7dbb9e - Show all commits

View File

@ -98,10 +98,10 @@ class ViewPhoto extends HTMLController
$metaData['Shutter Speed'] = $exif->shutterSpeedFraction(); $metaData['Shutter Speed'] = $exif->shutterSpeedFraction();
if (!empty($exif->aperture)) if (!empty($exif->aperture))
$metaData['Aperture'] = number_format($exif->aperture, 1); $metaData['Aperture'] = 'f/' . number_format($exif->aperture, 1);
Aaron marked this conversation as resolved Outdated

Maybe re-add the f/ prefix?

Maybe re-add the `f/` prefix?
if (!empty($exif->focal_length)) if (!empty($exif->focal_length))
$metaData['Focal Length'] = $exif->focal_length; $metaData['Focal Length'] = $exif->focal_length . ' mm';
Aaron marked this conversation as resolved Outdated

Maybe re-add the mm unit?

Maybe re-add the `mm` unit?
if (!empty($exif->iso)) if (!empty($exif->iso))
$metaData['ISO Speed'] = $exif->iso; $metaData['ISO Speed'] = $exif->iso;