src/S3/Image.php
public static function getImageSize($name)
    {
        if (isset($_FILES[$name])) {
            $tempFile = $_FILES[$name]['tmp_name'];
            if (!empty($tempFile) && file_exists($tempFile)) {
                $size = getimagesize($tempFile);

                return $size;
            }
        }

        return getimagesize($name);
    }
public static function getImageSize($name)
    {
        if (isset($_FILES[$name])) {
            $tempFile = $_FILES[$name]['tmp_name'];
            if (!empty($tempFile) && file_exists($tempFile)) {
                $size = getimagesize($tempFile);

                return $size;
            }
        }

        return getimagesize($name);
    }
public static function getImageSize ( $ name ) { if ( isset ( $ _FILES [ $ name ] ) ) { $ tempFile = $ _FILES [ $ name ] [ 'tmp_name' ] ; if ( ! empty ( $ tempFile ) && file_exists ( $ tempFile ) ) { $ size = getimagesize ( $ tempFile ) ; return $ size ; } } return getimagesize ( $ name ) ; }
Returns the image width ans height

@param string $name Name of the $_FILES[] field to be checked

@return array|bool
Returns the image width ans height