xref: /PHP-5.5/ext/exif/tests/exif002.phpt (revision 45420bb6)
1--TEST--
2Check for exif_thumbnail
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--INI--
6output_handler=
7zlib.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';
16echo md5_file($infile).'_'.filesize($infile);
17$thumb = exif_thumbnail(dirname(__FILE__).'/test2.jpg');
18echo " == ";
19echo md5($thumb).'_'.strlen($thumb);
20echo "\n";
21?>
22--EXPECT--
2327bbfd9fc10e1e663d749f5225447905_523 == 27bbfd9fc10e1e663d749f5225447905_523
24