exif002.phpt 600 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Check for exif_thumbnail
  3. --EXTENSIONS--
  4. exif
  5. --INI--
  6. output_handler=
  7. zlib.output_compression=0
  8. --FILE--
  9. <?php
  10. /*
  11. test1.jpg is a 1*1 image that does not contain any Exif/Comment information
  12. test2.jpg is the same image but contains Exif/Comment information and a
  13. copy of test1.jpg as a thumbnail.
  14. */
  15. $infile = __DIR__.'/test1.jpg';
  16. echo md5_file($infile).'_'.filesize($infile);
  17. $thumb = exif_thumbnail(__DIR__.'/test2.jpg');
  18. echo " == ";
  19. echo md5($thumb).'_'.strlen($thumb);
  20. echo "\n";
  21. ?>
  22. --EXPECT--
  23. 27bbfd9fc10e1e663d749f5225447905_523 == 27bbfd9fc10e1e663d749f5225447905_523