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