Some EXIF data are in the IFD0 section

This let Lychee correctly handle all cases of https://github.com/recurser/exif-orientation-examples/ :-)
This commit is contained in:
oliverpool 2017-12-13 09:20:55 +01:00 committed by GitHub
parent 95e3f25522
commit 33f5fb1787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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