Annotation of embedaddon/php/ext/exif/tests/exif002.phpt, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>