yii\imagine\BaseImage::getImagine PHP Method

getImagine() public static method

Returns the Imagine object that supports various image manipulations.
public static getImagine ( ) : Imagine\Image\ImagineInterface
return Imagine\Image\ImagineInterface the `Imagine` object
    public static function getImagine()
    {
        if (self::$_imagine === null) {
            self::$_imagine = static::createImagine();
        }
        return self::$_imagine;
    }