Minor format fixes.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@128940 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2003-05-27 19:17:51 +00:00
parent 6385181b76
commit 1846bab5f1

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/image.xml, last change in rev 1.78 -->
<refentry id="function.exif-thumbnail">
<refnamediv>
@ -21,24 +21,27 @@
will be returned.
</para>
<para>
The parameters <parameter>width</parameter>, <parameter>height</parameter> and
<parameter>imagetype</parameter> are available since PHP 4.3 and return the size
of the thumbnail as well as its type. It is possible that
<function>exif_thumbnail</function> cannot create an image but determine its
size. In this case the return value is &false; but <parameter>width</parameter> and
The parameters <parameter>width</parameter>,
<parameter>height</parameter> and <parameter>imagetype</parameter> are
available since PHP 4.3.0 and return the size of the thumbnail as well
as its type. It is possible that <function>exif_thumbnail</function>
cannot create an image but can determine its size. In this case, the
return value is &false; but <parameter>width</parameter> and
<parameter>height</parameter> are set.
</para>
<para>
If you want to deliver thumbnails through this function you should send the
mimetype information using <function>header</function> function. The following
example demonstrates this:
<example>
<title><function>exif_thumbnail</function> example</title>
<programlisting role="php">
If you want to deliver thumbnails through this function, you should send
the mimetype information using the <function>header</function> function.
The following example demonstrates this:
</para>
<para>
<example>
<title><function>exif_thumbnail</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
if (array_key_exists('file',$_REQUEST)) {
$image = exif_thumbnail($_REQUEST['file'], $width, $height, $type);
$image = exif_thumbnail($_REQUEST['file'], $width, $height, $type);
} else {
$image = false;
}
@ -52,28 +55,30 @@ if ($image!==false) {
}
?>
]]>
</programlisting>
</example>
</programlisting>
</example>
</para>
<para>
Starting from version PHP 4.3 the function <function>exif_thumbnail</function> can
return thumbnails in <acronym>TIFF</acronym> format.
</para>
<para>
<note>
<simpara>
This function is only available in PHP 4 compiled using
<option role="configure">--enable-exif</option>.
Its functionality and behaviour has changed in PHP 4.2
</simpara>
<simpara>
This function does not require the GD image library.
</simpara>
<simpara>
See also <function>exif_read_data</function> and <function>image_type_to_mime_type</function>.
</simpara>
</note>
Starting from version PHP 4.3.0, the function
<function>exif_thumbnail</function> can return thumbnails in
<acronym>TIFF</acronym> format.
</para>
<note>
<simpara>
This function is only available in PHP 4 compiled using
<option role="configure">--enable-exif</option>.
Its functionality and behaviour has changed in PHP 4.2.0
</simpara>
</note>
<note>
<simpara>
This function does not require the GD image library.
</simpara>
</note>
<simpara>
See also <function>exif_read_data</function> and
<function>image_type_to_mime_type</function>.
</simpara>
</refsect1>
</refentry>