Documentation

ImageManager
in package

Table of Contents

Properties

$config  : array<string|int, mixed>
Config

Methods

__construct()  : mixed
Creates new instance of Image Manager
cache()  : Image
Create new cached image and run callback (requires additional package intervention/imagecache)
canvas()  : Image
Creates an empty image canvas
configure()  : self
Overrides configuration settings
make()  : Image
Initiates an Image instance from different input types
checkRequirements()  : void
Check if all requirements are available
createDriver()  : AbstractDriver
Creates a driver instance according to config settings

Properties

$config

Config

public array<string|int, mixed> $config = ['driver' => 'gd']

Methods

__construct()

Creates new instance of Image Manager

public __construct([array<string|int, mixed> $config = [] ]) : mixed
Parameters
$config : array<string|int, mixed> = []

cache()

Create new cached image and run callback (requires additional package intervention/imagecache)

public cache(Closure $callback[, int $lifetime = null ][, bool $returnObj = false ]) : Image
Parameters
$callback : Closure
$lifetime : int = null
$returnObj : bool = false
Return values
Image

canvas()

Creates an empty image canvas

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

configure()

Overrides configuration settings

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

make()

Initiates an Image instance from different input types

public make(mixed $data) : Image
Parameters
$data : mixed
Return values
Image

checkRequirements()

Check if all requirements are available

private checkRequirements() : void

        
On this page

Search results