1234567891011121314151617 |
- --TEST--
- Bug #75785 fix corrupt EXIF header issues; Related to mixed endianness. (Thank you @Richard Matzinger for providing the test photo)
- --EXTENSIONS--
- exif
- --FILE--
- <?php
- $mixedEndiannessFile = dirname(__FILE__).'/P1000506.JPG';
- $tags = exif_read_data($mixedEndiannessFile, 'EXIF', true, false);
- echo $tags['GPS']['GPSLatitude'][0] . PHP_EOL;
- echo $tags['GPS']['GPSLongitude'][0] . PHP_EOL;
- ?>
- ===DONE===
- --EXPECT--
- 38/1
- 122/1
- ===DONE===
|