cvs: phpdoc /en/reference/image/functions getimagesize.xml
| From: | Richard Quadling | Date: | Wed, 02 Jul 2008 10:43:25 +0000 |
| Subject: | cvs: phpdoc /en/reference/image/functions getimagesize.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1808@lists.php.net to get a copy of this message | ||
rquadling Wed Jul 2 10:43:25 2008 UTC
Modified files:
/phpdoc/en/reference/image/functions getimagesize.xml
Log:
Bug#45411
Now returns 7 values. Also tidied the 6th and 7th values.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/getimagesize.xml?r1=1.36&r2=1.37&diff_format=u
Index: phpdoc/en/reference/image/functions/getimagesize.xml
diff -u phpdoc/en/reference/image/functions/getimagesize.xml:1.36
phpdoc/en/reference/image/functions/getimagesize.xml:1.37
--- phpdoc/en/reference/image/functions/getimagesize.xml:1.36 Sat Oct 13 19:22:54 2007
+++ phpdoc/en/reference/image/functions/getimagesize.xml Wed Jul 2 10:43:24 2008
@@ -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 @@
</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.