Bug#45411

Now returns 7 values. Also tidied the 6th and 7th values.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@261907 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2008-07-02 10:43:24 +00:00
parent ae0cac11b7
commit 1721bf6db4

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.36 $ -->
<!-- $Revision: 1.37 $ -->
<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.getimagesize">
<refnamediv>
<refname>getimagesize</refname>
@ -74,7 +74,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns an array with 5 elements.
Returns an array with 7 elements.
</para>
<para>
Index 0 and 1 contains respectively the width and the height of the image.
@ -121,8 +121,14 @@ if ($size && $fp) {
</para>
<para>
<literal>channels</literal> will be 3 for RGB pictures and 4 for CMYK
pictures. <literal>bits</literal> is the number of bits for each color.
However, for some image types, the presence of these values can be a bit
pictures.
</para>
<para>
<literal>bits</literal> is the number of bits for each color.
</para>
</para>
For some image types, the presence of <literal>channels</literal> and
<literal>bits</literal> 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.