Goose\Images\ImageUtils::getImageDimensions PHP 메소드

getImageDimensions() 공개 정적인 메소드

public static getImageDimensions ( string $filePath ) : object
$filePath string
리턴 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)];
    }