mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Use of proper english and XML formatting (no real changes).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@124683 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5847198c35
commit
1d8e5ba90e
1 changed files with 23 additions and 22 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.81 -->
|
||||
<refentry id="function.exif-imagetype">
|
||||
<refnamediv>
|
||||
|
@ -15,9 +15,9 @@
|
|||
<para>
|
||||
<function>exif_imagetype</function> reads the first bytes of an image and
|
||||
checks its signature. When a correct signature is found a constant will be
|
||||
returned otherwise the return value is &false;. The return value is the same
|
||||
value that <function>getimagesize</function> returns in index 2 but this
|
||||
function is much faster.
|
||||
returned otherwise the return value is &false;. The return value is the
|
||||
same value that <function>getimagesize</function> returns in index 2 but
|
||||
this function is much faster.
|
||||
</para>
|
||||
<para>
|
||||
The following constants are defined:
|
||||
|
@ -31,28 +31,29 @@
|
|||
8 = <constant>IMAGETYPE_TIFF_MM</constant> (motorola byte order),
|
||||
9 = <constant>IMAGETYPE_JPC</constant>,
|
||||
10 = <constant>IMAGETYPE_JP2</constant>,
|
||||
11 = <constant>IMAGETYPE_JPX</constant> et
|
||||
11 = <constant>IMAGETYPE_JPX</constant>, and
|
||||
12 = <constant>IMAGETYPE_SWC</constant>.
|
||||
</para>
|
||||
<para>
|
||||
This function can be used to avoid calls to other exif functions with unsupported
|
||||
file types or in conjunction with $_SERVER['HTTP_ACCEPT'] to check whether or
|
||||
not the viewer is able to see a specific image in his browser.
|
||||
</para>
|
||||
<para>
|
||||
<note>
|
||||
<simpara>
|
||||
This function is only available in PHP 4 compiled using
|
||||
<option role="configure">--enable-exif</option>.
|
||||
</simpara>
|
||||
<simpara>
|
||||
This function does not require the GD image library.
|
||||
</simpara>
|
||||
<simpara>
|
||||
See also <function>getimagesize</function>.
|
||||
</simpara>
|
||||
</note>
|
||||
This function can be used to avoid calls to other exif functions with
|
||||
unsupported file types or in conjunction with
|
||||
<varname>$_SERVER['HTTP_ACCEPT']</varname> to check whether or
|
||||
not the viewer is able to see a specific image in the browser.
|
||||
</para>
|
||||
<note>
|
||||
<simpara>
|
||||
This function is only available if PHP 4 is compiled using
|
||||
<option role="configure">--enable-exif</option>.
|
||||
</simpara>
|
||||
</note>
|
||||
<note>
|
||||
<simpara>
|
||||
This function does not require the GD image library.
|
||||
</simpara>
|
||||
</note>
|
||||
<simpara>
|
||||
See also <function>getimagesize</function>.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue