exif025.phpt 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --TEST--
  2. Check for exif_read_data, JPEG with IFD0, EXIF, INTEROP data in Motorola byte-order.
  3. --EXTENSIONS--
  4. exif
  5. --INI--
  6. output_handler=
  7. zlib.output_compression=0
  8. --FILE--
  9. <?php
  10. var_dump(exif_read_data(__DIR__.'/image025.jpg'));
  11. ?>
  12. --EXPECTF--
  13. array(14) {
  14. ["FileName"]=>
  15. string(12) "image025.jpg"
  16. ["FileDateTime"]=>
  17. int(%d)
  18. ["FileSize"]=>
  19. int(%d)
  20. ["FileType"]=>
  21. int(2)
  22. ["MimeType"]=>
  23. string(10) "image/jpeg"
  24. ["SectionsFound"]=>
  25. string(28) "ANY_TAG, IFD0, EXIF, INTEROP"
  26. ["COMPUTED"]=>
  27. array(5) {
  28. ["html"]=>
  29. string(20) "width="1" height="1""
  30. ["Height"]=>
  31. int(1)
  32. ["Width"]=>
  33. int(1)
  34. ["IsColor"]=>
  35. int(1)
  36. ["ByteOrderMotorola"]=>
  37. int(1)
  38. }
  39. ["Exif_IFD_Pointer"]=>
  40. int(26)
  41. ["InteroperabilityOffset"]=>
  42. int(44)
  43. ["InterOperabilityIndex"]=>
  44. string(3) "R98"
  45. ["InterOperabilityVersion"]=>
  46. string(4) "0100"
  47. ["RelatedFileFormat"]=>
  48. string(12) "image025.jpg"
  49. ["RelatedImageWidth"]=>
  50. int(1)
  51. ["RelatedImageHeight"]=>
  52. int(1)
  53. }
  54. --CREDITS--
  55. Eric Stewart <ericleestewart@gmail.com>