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.
?php $size = getimagesize( "http: / /www.php.net / gifs / logo.gif");?