File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / exif / tests / exif002.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:37 2012 UTC (12 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, HEAD
php 5.4.3+patches

    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>