Goose\Images\ImageUtils::getImageDimensions PHP Method

getImageDimensions() public static method

public static getImageDimensions ( string $filePath ) : object
$filePath string
return object
    public static function getImageDimensions($filePath)
    {
        list($width, $height, $type) = getimagesize($filePath);
        return (object) ['width' => $width, 'height' => $height, 'mime' => image_type_to_mime_type($type)];
    }