uTools-Manuals/docs/php/getimagesize.html
2019-04-28 19:00:34 +08:00

419 lines
25 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>取得图像大小</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.getimagesize" class="refentry">
<div class="refnamediv">
<h1 class="refname">getimagesize</h1>
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">getimagesize</span> &mdash; <span class="dc-title">取得图像大小</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.getimagesize-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>getimagesize</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>
[, <span class="methodparam"><span class="type">array</span> <code class="parameter reference">&$imageinfo</code></span>
] ) : <span class="type">array</span></div>
<p class="para rdfs-comment">
<span class="function"><strong>getimagesize()</strong></span> 函数将测定任何
<acronym title="Graphic Interchange Format">GIF</acronym><acronym>JPG</acronym><acronym title="Portable Network Graphics">PNG</acronym><acronym title="Shockwave Flash">SWF</acronym><acronym>SWC</acronym><acronym title="Photoshop Document">PSD</acronym><acronym title="Tagged Image File Format">TIFF</acronym><acronym title="Bitmap">BMP</acronym><acronym title="Interchange File Format">IFF</acronym><acronym title="JPEG-2000">JP2</acronym><acronym>JPX</acronym><acronym title="Joint Bilevel Image Experts Group">JB2</acronym><acronym title="Japan Picture">JPC</acronym><acronym title="X Bitmap">XBM</acronym>
<acronym title="Wireless Bitmap">WBMP</acronym> 图像文件的大小并返回图像的尺寸以及文件类型和一个可以用于普通
<acronym title="Hyper Text Markup Language">HTML</acronym> 文件中 <code class="tag">IMG</code> 标记中的
height/width 文本字符串。
</p>
<p class="para">
如果不能访问 <code class="parameter">filename</code>
指定的图像或者其不是有效的图像,<span class="function"><strong>getimagesize()</strong></span>
将返回 <strong><code>FALSE</code></strong> 并产生一条 <var class="varname"><var class="varname">E_WARNING</var></var> 级的错误。
</p>
<blockquote class="note"><p><strong class="note">Note</strong>:
<p class="para">
<acronym title="Japan Picture">JPC</acronym><acronym title="JPEG-2000">JP2</acronym><acronym>JPX</acronym><acronym title="Joint Bilevel Image Experts Group">JB2</acronym><acronym title="X Bitmap">XBM</acronym>
<acronym title="Wireless Bitmap">WBMP</acronym> 的支持自 PHP 4.3.2
起可用。对 <acronym>SWC</acronym> 的支持自 PHP 4.3.0 起可用。对
<acronym title="Tagged Image File Format">TIFF</acronym> 的支持是 PHP 4.2.0 添加的。
</p>
</p></blockquote>
<blockquote class="note"><p><strong class="note">Note</strong>:
<span class="simpara">
JPEG 2000 支持是 PHP 4.3.2 添加的。注意 JPC 和 JP2
可以有不同的色彩深度的成分。此情况下“bits”的值是碰到的最高的位深度。此外JP2
文件可能包含有多个 JPEG 2000 代码流,此情况下,<span class="function"><strong>getimagesize()</strong></span>
返回此文件顶层中碰到的第一个代码流的值。
</span>
</p></blockquote>
<blockquote class="note"><p><strong class="note">Note</strong>:
<span class="simpara">
本函数不需要 GD 图像库。
</span>
</p></blockquote>
<p class="para">
返回一个具有四个单元的数组。索引 0 包含图像宽度的像素值,索引 1
包含图像高度的像素值。索引 2 是图像类型的标记1 = GIF2 = JPG3 =
PNG4 = SWF5 = PSD6 = BMP7 = TIFF(intel byte order)8 =
TIFF(motorola byte order)9 = JPC10 = JP211 = JPX12 =
JB213 = SWC14 = IFF15 = WBMP16 = XBM。这些标记与 PHP 4.3.0
新加的 IMAGETYPE 常量对应。索引 3 是文本字符串内容为“height=&quot;yyy&quot;
width=&quot;xxx&quot;”,可直接用于 IMG 标记。
<div class="example" id="example-3641">
<p><strong>Example #1 getimagesize文件</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">list(</span><span style="color: #0000BB">$width</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$height</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$type</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$attr</span><span style="color: #007700">)&nbsp;=&nbsp;</span><span style="color: #0000BB">getimagesize</span><span style="color: #007700">(</span><span style="color: #DD0000">"img/flag.jpg"</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #DD0000">"&lt;img&nbsp;src=\"img/flag.jpg\"&nbsp;</span><span style="color: #0000BB">$attr</span><span style="color: #DD0000">&gt;"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
<p class="para">
URL 支持是 PHP 4.0.5 添加的。
<div class="example" id="example-3642">
<p><strong>Example #2 getimagesizeURL</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$size&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getimagesize</span><span style="color: #007700">(</span><span style="color: #DD0000">"http://www.example.com/gifs/logo.gif"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;if&nbsp;the&nbsp;file&nbsp;name&nbsp;has&nbsp;space&nbsp;in&nbsp;it,&nbsp;encode&nbsp;it&nbsp;properly<br /></span><span style="color: #0000BB">$size&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getimagesize</span><span style="color: #007700">(</span><span style="color: #DD0000">"http://www.example.com/gifs/lo%20go.gif"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
<p class="para">
对于 <acronym>JPG</acronym> 图像,还会多返回两个索引:<em>channels</em>
<em>bits</em><em>channels</em>
对于 RGB 图像其值为 3对于 CMYK 图像其值为 4。<em>bits</em>
是每种颜色的位数。
</p>
<p class="para">
自 PHP 4.3.0 起,<em>bits</em>
<em>channels</em> 对于其它图像类型也存在。但是这些值可能会把人搞糊涂。例如,<acronym title="Graphic Interchange Format">GIF</acronym>
总是对每个像素使用 3 个 channel但是对于动画 <acronym title="Graphic Interchange Format">GIF</acronym>
来说每个像素的位数无法通过全局颜色表计算出来。
</p>
<p class="para">
某些格式可能不包含图像或者包含多个图像。此种情况下,<span class="function"><strong>getimagesize()</strong></span>
可能不能用来准确测定图像的大小。此时 <span class="function"><strong>getimagesize()</strong></span>
将返回零作为宽度和高度。
</p>
<p class="para">
自 PHP 4.3.0 起,<span class="function"><strong>getimagesize()</strong></span> 还会返回额外的参数
<em>mime</em>,符合该图像的 MIME 类型。此信息可以用来在
HTTP Content-type 头信息中发送正确的信息:
<div class="example" id="example-3643">
<p><strong>Example #3 getimagesize() 和 MIME 类型</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$size&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getimagesize</span><span style="color: #007700">(</span><span style="color: #0000BB">$filename</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$fp</span><span style="color: #007700">=</span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #0000BB">$filename</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"rb"</span><span style="color: #007700">);<br />if&nbsp;(</span><span style="color: #0000BB">$size&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;</span><span style="color: #0000BB">$fp</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Content-type:&nbsp;</span><span style="color: #007700">{</span><span style="color: #0000BB">$size</span><span style="color: #007700">[</span><span style="color: #DD0000">'mime'</span><span style="color: #007700">]}</span><span style="color: #DD0000">"</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">fpassthru</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br />&nbsp;&nbsp;exit;<br />}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;error<br /></span><span style="color: #007700">}<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
<p class="para">
可选的 <code class="parameter">imageinfo</code>
参数允许从图像文件中提取一些扩展信息。目前,这将以一个关联数组返回不同的
<acronym>JPG</acronym> APP 标识。某些程序用这些 APP
标识来在图像中嵌入文本信息。一个非常常见的是 APP13 标识中嵌入的
<acronym>IPTC</acronym> <a href="http://www.iptc.org/" class="link external">&raquo;&nbsp;http://www.iptc.org/</a>
信息。可以用 <span class="function"><a href="iptcparse.html" class="function">iptcparse()</a></span> 函数来将二进制的
APP13 标识解析为可读的信息。
</p>
<p class="para">
<div class="example" id="example-3644">
<p><strong>Example #4 getimagesize() 返回 IPTC</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$size&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getimagesize</span><span style="color: #007700">(</span><span style="color: #DD0000">"testimg.jpg"</span><span style="color: #007700">,&nbsp;&amp;</span><span style="color: #0000BB">$info</span><span style="color: #007700">);<br />if&nbsp;(isset(</span><span style="color: #0000BB">$info</span><span style="color: #007700">[</span><span style="color: #DD0000">"APP13"</span><span style="color: #007700">]))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$iptc&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">iptcparse</span><span style="color: #007700">(</span><span style="color: #0000BB">$info</span><span style="color: #007700">[</span><span style="color: #DD0000">"APP13"</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$iptc</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
<p class="para">
参见 <span class="function"><a href="image_type_to_mime_type.html" class="function">image_type_to_mime_type()</a></span><span class="function"><a href="exif_imagetype.html" class="function">exif_imagetype()</a></span><span class="function"><a href="exif_read_data.html" class="function">exif_read_data()</a></span>
<span class="function"><a href="exif_thumbnail.html" class="function">exif_thumbnail()</a></span>
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.getimagesize-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">filename</code></dt>
<dd>
<p class="para">
This parameter specifies the file you wish to retrieve information
about. It can reference a local file or (configuration permitting) a
remote file using one of the supported streams.
</p>
</dd>
<dt>
<code class="parameter">imageinfo</code></dt>
<dd>
<p class="para">
This optional parameter allows you to extract some extended
information from the image file. Currently, this will return the
different <acronym>JPG</acronym> APP markers as an associative array.
Some programs use these APP markers to embed text information in
images. A very common one is to embed
<a href="http://www.iptc.org/" class="link external">&raquo;&nbsp;IPTC</a> information in the APP13 marker.
You can use the <span class="function"><a href="iptcparse.html" class="function">iptcparse()</a></span> function to parse the
binary APP13 marker into something readable.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.getimagesize-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Returns an array with 7 elements.
</p>
<p class="para">
Index 0 and 1 contains respectively the width and the height of the image.
</p>
<blockquote class="note"><p><strong class="note">Note</strong>:
<p class="para">
Some formats may contain no image or may contain multiple images. In these
cases, <span class="function"><strong>getimagesize()</strong></span> might not be able to properly
determine the image size. <span class="function"><strong>getimagesize()</strong></span> will return
zero for width and height in these cases.
</p>
</p></blockquote>
<p class="para">
Index 2 is one of the <em>IMAGETYPE_XXX</em> constants indicating
the type of the image.
</p>
<p class="para">
Index 3 is a text string with the correct
<em>height=&quot;yyy&quot; width=&quot;xxx&quot;</em> string that can be used
directly in an <acronym>IMG</acronym> tag.
</p>
<p class="para">
<em>mime</em> is the correspondant MIME type of the image.
This information can be used to deliver images with the correct HTTP
<em>Content-type</em> header:
<div class="example" id="example-3645">
<p><strong>Example #5 <span class="function"><strong>getimagesize()</strong></span> and MIME types</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$size&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getimagesize</span><span style="color: #007700">(</span><span style="color: #0000BB">$filename</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$fp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #0000BB">$filename</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"rb"</span><span style="color: #007700">);<br />if&nbsp;(</span><span style="color: #0000BB">$size&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;</span><span style="color: #0000BB">$fp</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Content-type:&nbsp;</span><span style="color: #007700">{</span><span style="color: #0000BB">$size</span><span style="color: #007700">[</span><span style="color: #DD0000">'mime'</span><span style="color: #007700">]}</span><span style="color: #DD0000">"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">fpassthru</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;exit;<br />}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;error<br /></span><span style="color: #007700">}<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
<p class="para">
<em>channels</em> will be 3 for RGB pictures and 4 for CMYK
pictures.
</p>
<p class="para">
<em>bits</em> is the number of bits for each color.
</p>
<p class="para">
For some image types, the presence of <em>channels</em> and
<em>bits</em> values can be a bit
confusing. As an example, <acronym title="Graphic Interchange Format">GIF</acronym> always uses 3 channels
per pixel, but the number of bits per pixel cannot be calculated for an
animated <acronym title="Graphic Interchange Format">GIF</acronym> with a global color table.
</p>
<p class="para">
On failure, <strong><code>FALSE</code></strong> is returned.
</p>
</div>
<div class="refsect1 errors" id="refsect1-function.getimagesize-errors">
<h3 class="title">错误/异常</h3>
<p class="para">
If accessing the <code class="parameter">filename</code> image is impossible, or
if it isn&#039;t a valid picture, <span class="function"><strong>getimagesize()</strong></span> will
generate an error of level <strong><code>E_WARNING</code></strong>. On read error,
<span class="function"><strong>getimagesize()</strong></span> will generate an error of level
<strong><code>E_NOTICE</code></strong>.
</p>
</div>
<div class="refsect1 changelog" id="refsect1-function.getimagesize-changelog">
<h3 class="title">更新日志</h3>
<p class="para">
<table class="doctable informaltable">
<thead>
<tr>
<th>版本</th>
<th>说明</th>
</tr>
</thead>
<tbody class="tbody">
<tr>
<td>5.3.0</td>
<td>
Added icon support.
</td>
</tr>
<tr>
<td>5.2.3</td>
<td>
Read errors generated by this function downgraded to
<strong><code>E_NOTICE</code></strong> from <strong><code>E_WARNING</code></strong>.
</td>
</tr>
<tr>
<td>4.3.2</td>
<td>
Support for <acronym title="Japan Picture">JPC</acronym>, <acronym title="JPEG-2000">JP2</acronym>,
<acronym>JPX</acronym>, <acronym title="Joint Bilevel Image Experts Group">JB2</acronym>,
<acronym title="X Bitmap">XBM</acronym>, and <acronym title="Wireless Bitmap">WBMP</acronym> became available.
</td>
</tr>
<tr>
<td>4.3.2</td>
<td>
JPEG 2000 support was added for the <code class="parameter">imageinfo</code>
parameter.
</td>
</tr>
<tr>
<td>4.3.0</td>
<td>
<em>bits</em> and <em>channels</em> are present
for other image types, too.
</td>
</tr>
<tr>
<td>4.3.0</td>
<td>
<em>mime</em> was added.
</td>
</tr>
<tr>
<td>4.3.0</td>
<td>
Support for <acronym>SWC</acronym> and <acronym title="Interchange File Format">IFF</acronym> was
added.
</td>
</tr>
<tr>
<td>4.2.0</td>
<td>
Support for <acronym title="Tagged Image File Format">TIFF</acronym> was added.
</td>
</tr>
<tr>
<td>4.0.6</td>
<td>
Support for <acronym title="Bitmap">BMP</acronym> and <acronym title="Photoshop Document">PSD</acronym> was
added.
</td>
</tr>
<tr>
<td>4.0.5</td>
<td>
URL support was added.
</td>
</tr>
</tbody>
</table>
</p>
</div>
<div class="refsect1 examples" id="refsect1-function.getimagesize-examples">
<h3 class="title">范例</h3>
<p class="para">
<div class="example" id="example-3646">
<p><strong>Example #6 <span class="function"><strong>getimagesize()</strong></span> example</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">list(</span><span style="color: #0000BB">$width</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$height</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$type</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$attr</span><span style="color: #007700">)&nbsp;=&nbsp;</span><span style="color: #0000BB">getimagesize</span><span style="color: #007700">(</span><span style="color: #DD0000">"img/flag.jpg"</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #DD0000">"&lt;img&nbsp;src=\"img/flag.jpg\"&nbsp;</span><span style="color: #0000BB">$attr</span><span style="color: #DD0000">&nbsp;alt=\"getimagesize()&nbsp;example\"&nbsp;/&gt;"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
<div class="example" id="example-3647">
<p><strong>Example #7 getimagesize (URL)</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$size&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getimagesize</span><span style="color: #007700">(</span><span style="color: #DD0000">"http://www.example.com/gifs/logo.gif"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;if&nbsp;the&nbsp;file&nbsp;name&nbsp;has&nbsp;space&nbsp;in&nbsp;it,&nbsp;encode&nbsp;it&nbsp;properly<br /></span><span style="color: #0000BB">$size&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getimagesize</span><span style="color: #007700">(</span><span style="color: #DD0000">"http://www.example.com/gifs/lo%20go.gif"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
<div class="example" id="example-3648">
<p><strong>Example #8 getimagesize() returning IPTC</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$size&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getimagesize</span><span style="color: #007700">(</span><span style="color: #DD0000">"testimg.jpg"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$info</span><span style="color: #007700">);<br />if&nbsp;(isset(</span><span style="color: #0000BB">$info</span><span style="color: #007700">[</span><span style="color: #DD0000">"APP13"</span><span style="color: #007700">]))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$iptc&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">iptcparse</span><span style="color: #007700">(</span><span style="color: #0000BB">$info</span><span style="color: #007700">[</span><span style="color: #DD0000">"APP13"</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$iptc</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
</div>
<div class="refsect1 notes" id="refsect1-function.getimagesize-notes">
<h3 class="title">注释</h3>
<blockquote class="note"><p><strong class="note">Note</strong>: <p class="para">此函数不需要 GD 图象库。</p></p></blockquote>
</div>
<div class="refsect1 seealso" id="refsect1-function.getimagesize-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="image_type_to_mime_type.html" class="function" rel="rdfs-seeAlso">image_type_to_mime_type()</a> - 取得 getimagesizeexif_read_dataexif_thumbnailexif_imagetype
所返回的图像类型的 MIME 类型</span></li>
<li class="member"><span class="function"><a href="exif_imagetype.html" class="function" rel="rdfs-seeAlso">exif_imagetype()</a> - 判断一个图像的类型</span></li>
<li class="member"><span class="function"><a href="exif_read_data.html" class="function" rel="rdfs-seeAlso">exif_read_data()</a> - 从 JPEG 或 TIFF
文件中读取 EXIF 头信息</span></li>
<li class="member"><span class="function"><a href="exif_thumbnail.html" class="function" rel="rdfs-seeAlso">exif_thumbnail()</a> - 取得嵌入在 TIFF 或 JPEG 图像中的缩略图</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>