Documentation

ImageManagerStatic
in package

Table of Contents

Properties

$manager  : ImageManager
Instance of Intervention\Image\ImageManager

Methods

__construct()  : mixed
Creates a new instance
cache()  : mixed
Create new cached image and run callback statically
canvas()  : Image
Statically creates an empty image canvas
configure()  : ImageManager
Statically create new custom configured image manager
getManager()  : ImageManager
Get or create new ImageManager instance
make()  : Image
Statically initiates an Image instance from different input types

Properties

Methods

cache()

Create new cached image and run callback statically

public static cache(Closure $callback[, int $lifetime = null ][, bool $returnObj = false ]) : mixed
Parameters
$callback : Closure
$lifetime : int = null
$returnObj : bool = false

canvas()

Statically creates an empty image canvas

public static canvas(int $width, int $height[, mixed $background = null ]) : Image
Parameters
$width : int
$height : int
$background : mixed = null
Return values
Image

configure()

Statically create new custom configured image manager

public static configure([array<string|int, mixed> $config = [] ]) : ImageManager
Parameters
$config : array<string|int, mixed> = []
Return values
ImageManager

        
On this page

Search results