public static function get(string $type): ImagineInterface
    {
        switch ($type) {
            case self::GD:
                return new GdImagine();
            case self::IMAGICK:
                return new ImagickImagine();
            case self::GMAGICK:
                return new GmagickImagine();
            default:
                throw new InvalidConfigException(sprintf('Image driver %s not found.', $type));
        }
    }
public static function get(string $type): ImagineInterface
    {
        switch ($type) {
            case self::GD:
                return new GdImagine();
            case self::IMAGICK:
                return new ImagickImagine();
            case self::GMAGICK:
                return new GmagickImagine();
            default:
                throw new InvalidConfigException(sprintf('Image driver %s not found.', $type));
        }
    }
public static function get ( string $ type ) : ImagineInterface { switch ( $ type ) { case self :: GD : return new GdImagine ( ) ; case self :: IMAGICK : return new ImagickImagine ( ) ; case self :: GMAGICK : return new GmagickImagine ( ) ; default : throw new InvalidConfigException ( sprintf ( 'Image driver %s not found.' , $ type ) ) ; } }
Create imagine object for given driver
@param string $type
@return ImagineInterface
@throws \Imagine\Exception\RuntimeException
@throws InvalidConfigException
Create imagine object for given driver