Skip to content

Instantly share code, notes, and snippets.

@lorenzulrich
Created June 2, 2021 21:44
Show Gist options
  • Save lorenzulrich/f9e8f345f85d162c13f51fabfb335840 to your computer and use it in GitHub Desktop.
Save lorenzulrich/f9e8f345f85d162c13f51fabfb335840 to your computer and use it in GitHub Desktop.
From dfd8bbe308f92687b6bfc0096ebb58ddd7e593dd Mon Sep 17 00:00:00 2001
From: Andy Meier <[email protected]>
Date: Tue, 15 Dec 2020 12:53:59 +0100
Subject: [PATCH] [BUGFIX] wrong width and height properties taken from EXIF
(refs #20853)
---
Classes/Service/Extractor/MetaDataExtractor.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Classes/Service/Extractor/MetaDataExtractor.php b/Classes/Service/Extractor/MetaDataExtractor.php
index bf8ae81..6ed1a5f 100644
--- a/Classes/Service/Extractor/MetaDataExtractor.php
+++ b/Classes/Service/Extractor/MetaDataExtractor.php
@@ -150,14 +150,14 @@ class MetaDataExtractor extends AbstractExtractor
case 'height':
$metaDataCleaned['height'] = $value;
break;
- case 'Image Height':
+ case 'Exif Image Height':
list($height) = explode(' ', $value, 2);
$metaDataCleaned['height'] = $height;
break;
case 'width':
$metaDataCleaned['width'] = $value;
break;
- case 'Image Width':
+ case 'Exif Image Width':
list($width) = explode(' ', $value, 2);
$metaDataCleaned['width'] = $width;
break;
--
2.25.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment