exif002.phpt

来自「PHP v6.0 For Linux 运行环境:Win9X/ WinME/ Wi」· PHPT 代码 · 共 24 行

PHPT
24
字号
--TEST--Check for exif_thumbnail--SKIPIF--<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>--INI--output_handler=zlib.output_compression=0 --FILE--<?php/*  test1.jpg is a 1*1 image that does not contain any Exif/Comment information  test2.jpg is the same image but contains Exif/Comment information and a            copy of test1.jpg as a thumbnail.*/$infile = dirname(__FILE__).'/test1.jpg';echo md5_file($infile).'_'.filesize($infile);$thumb = exif_thumbnail(dirname(__FILE__).'/test2.jpg');echo " == ";echo md5($thumb).'_'.strlen($thumb);echo "\n";?>--EXPECT--27bbfd9fc10e1e663d749f5225447905_523 == 27bbfd9fc10e1e663d749f5225447905_523

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?