- getimagesize() -> <function>getimagesize</function>

#- This will add a link to the corresponding page, and add the needed ()


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@94831 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2002-09-06 06:58:43 +00:00
parent b28afcfa91
commit eaa392243b

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
<refentry id="function.getimagesize">
<refnamediv>
@ -63,23 +63,24 @@ echo "<img src=\"img/flag.jpg\" {$size[3]}>";
pictures. <literal>bits</literal> is the number of bits for each color.
</para>
<para>
Beginning with PHP 4.3, <literal>bits</literal> and <literal>channels</literal>
are present for other image types, too. However, the presence of these values
can be a bit confusing. As an example, <acronym>GIF</acronym>
always uses 3 channels per pixel, but the number of bits per pixel
cannot be calculated for an animated <acronym>GIF</acronym> with a global
color table.
Beginning with PHP 4.3, <literal>bits</literal> and
<literal>channels</literal> are present for other image types, too.
However, the presence of these values can be a bit confusing. As an
example, <acronym>GIF</acronym> always uses 3 channels per pixel, but the
number of bits per pixel cannot be calculated for an animated
<acronym>GIF</acronym> with a global color table.
</para>
<para>
Some formats may contain no image or may contain multiple images. In these cases,
getimagesize() might not be able to properly determine the image size. getimagesize() will
return zero for width and height in these cases.
Some formats may contain no image or may contain multiple images. In these
cases, <function>getimagesize</function> might not be able to properly
determine the image size. <function>getimagesize</function> will return
zero for width and height in these cases.
</para>
<para>
Beginning with PHP 4.3, getimagesize() also returns an additional parameter,
<literal>MIME</literal>, that corresponds with the MIME type of the image.
This information can be used to deliver images with correct HTTP
Content-type headers:
Beginning with PHP 4.3, <function>getimagesize</function> also returns an
additional parameter, <literal>MIME</literal>, that corresponds with the
MIME type of the image. This information can be used to deliver images
with correct HTTP Content-type headers:
<example>
<title>getimagesize() and MIME types</title>
<programlisting role="php">