From 1721bf6db4f9aedad7f3838985c8a7b1a1d27294 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Wed, 2 Jul 2008 10:43:24 +0000 Subject: [PATCH] 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 --- reference/image/functions/getimagesize.xml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/reference/image/functions/getimagesize.xml b/reference/image/functions/getimagesize.xml index d82ec29f2f..53f9e9b27e 100644 --- a/reference/image/functions/getimagesize.xml +++ b/reference/image/functions/getimagesize.xml @@ -1,5 +1,5 @@ - + getimagesize @@ -74,7 +74,7 @@ &reftitle.returnvalues; - Returns an array with 5 elements. + Returns an array with 7 elements. Index 0 and 1 contains respectively the width and the height of the image. @@ -121,8 +121,14 @@ if ($size && $fp) { channels will be 3 for RGB pictures and 4 for CMYK - pictures. bits is the number of bits for each color. - However, for some image types, the presence of these values can be a bit + pictures. + + + bits is the number of bits for each color. + + + For some image types, the presence of channels and + bits values can be a bit confusing. As an example, GIF always uses 3 channels per pixel, but the number of bits per pixel cannot be calculated for an animated GIF with a global color table.