From 33f5fb178772a4bfaf43114a44e0c57d299b28ef Mon Sep 17 00:00:00 2001 From: oliverpool Date: Wed, 13 Dec 2017 09:20:55 +0100 Subject: [PATCH] Some EXIF data are in the IFD0 section This let Lychee correctly handle all cases of https://github.com/recurser/exif-orientation-examples/ :-) --- php/Modules/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/Modules/Photo.php b/php/Modules/Photo.php index 59beb77..d0554cb 100755 --- a/php/Modules/Photo.php +++ b/php/Modules/Photo.php @@ -832,7 +832,7 @@ final class Photo { } // Read EXIF - if ($info['mime']=='image/jpeg') $exif = @exif_read_data($url, 'EXIF', false, false); + if ($info['mime']=='image/jpeg') $exif = @exif_read_data($url, 'EXIF,IFD0', false, false); else $exif = false; // EXIF Metadata