Cheetah
Public Member Functions | Public Attributes | List of all members
Intervention\Image\ImageManager Class Reference

Public Member Functions

 __construct (array $config=array())
 
 configure (array $config=array())
 
 make ($data)
 
 canvas ($width, $height, $background=null)
 
 cache (Closure $callback, $lifetime=null, $returnObj=false)
 

Public Attributes

 $config
 

Detailed Description

Definition at line 7 of file ImageManager.php.

Constructor & Destructor Documentation

◆ __construct()

Intervention\Image\ImageManager::__construct ( array  $config = array())

Creates new instance of Image Manager

Parameters
array$config

Definition at line 23 of file ImageManager.php.

Member Function Documentation

◆ cache()

Intervention\Image\ImageManager::cache ( Closure  $callback,
  $lifetime = null,
  $returnObj = false 
)

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

Parameters
Closure$callback
integer$lifetime
boolean$returnObj
Returns
Image

Definition at line 77 of file ImageManager.php.

◆ canvas()

Intervention\Image\ImageManager::canvas (   $width,
  $height,
  $background = null 
)

Creates an empty image canvas

Parameters
integer$width
integer$height
mixed$background
Returns
\Intervention\Image\Image

Definition at line 62 of file ImageManager.php.

◆ configure()

Intervention\Image\ImageManager::configure ( array  $config = array())

Overrides configuration settings

Parameters
array$config

Definition at line 34 of file ImageManager.php.

◆ make()

Intervention\Image\ImageManager::make (   $data)

Initiates an Image instance from different input types

Parameters
mixed$data
Returns
\Intervention\Image\Image

Definition at line 48 of file ImageManager.php.

Member Data Documentation

◆ $config

Intervention\Image\ImageManager::$config
Initial value:
= array(
'driver' => 'gd'
)

Definition at line 14 of file ImageManager.php.


The documentation for this class was generated from the following file: