final protected function getImageInfo($file)
    {
        $image = getimagesize($file);

        if ($image !== false) {
            return array(
                'width' => $image[0],
                'height' => $image[1],
                'type' => $image[2],
                'mime' => $image['mime'],
                'bits' => isset($image['bits']) ? $image['bits'] : null
            );
        } else {
            return false;
        }
    }
final protected function getImageInfo($file)
    {
        $image = getimagesize($file);

        if ($image !== false) {
            return array(
                'width' => $image[0],
                'height' => $image[1],
                'type' => $image[2],
                'mime' => $image['mime'],
                'bits' => isset($image['bits']) ? $image['bits'] : null
            );
        } else {
            return false;
        }
    }
final protected function getImageInfo ( $ file ) { $ image = getimagesize ( $ file ) ; if ( $ image !== false ) { return array ( 'width' => $ image [ 0 ] , 'height' => $ image [ 1 ] , 'type' => $ image [ 2 ] , 'mime' => $ image [ 'mime' ] , 'bits' => isset ( $ image [ 'bits' ] ) ? $ image [ 'bits' ] : null ) ; } else { return false ; } }
Returns image info

@param string $file Path to the image from either URL or a filesystem
@return array|boolean False on failure
Returns image info