Annotation of embedaddon/php/ext/exif/tests/exif002.phpt, revision 1.1.1.2
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: 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 = dirname(__FILE__).'/test1.jpg';
16: echo md5_file($infile).'_'.filesize($infile);
17: $thumb = exif_thumbnail(dirname(__FILE__).'/test2.jpg');
18: echo " == ";
19: echo md5($thumb).'_'.strlen($thumb);
20: echo "\n";
21: ?>
22: --EXPECT--
23: 27bbfd9fc10e1e663d749f5225447905_523 == 27bbfd9fc10e1e663d749f5225447905_523
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>