\Pop\ImageImage

Image factory class

Summary

Methods
Properties
Constants
getAvailableAdapters()
isAvailable()
loadGd()
loadGmagick()
loadImagick()
loadGdFromString()
loadGmagickFromString()
loadImagickFromString()
createGd()
createGdIndex()
createGmagick()
createGmagickIndex()
createImagick()
createImagickIndex()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getAvailableAdapters()

getAvailableAdapters() : array

Get the available image adapters

Returns

array

isAvailable()

isAvailable(string  $adapter) : boolean

Determine if the adapter is available

Parameters

string $adapter

Returns

boolean

loadGd()

loadGd(string  $image) : \Pop\Image\Adapter\Gd

Load the image resource from the existing image file into a Gd object

Parameters

string $image

Returns

\Pop\Image\Adapter\Gd

loadGmagick()

loadGmagick(string  $image) : \Pop\Image\Adapter\Gmagick

Load the image resource from the existing image file into a Gmagick object

Parameters

string $image

Returns

\Pop\Image\Adapter\Gmagick

loadImagick()

loadImagick(string  $image) : \Pop\Image\Adapter\Imagick

Load the image resource from the existing image file into a Imagick object

Parameters

string $image

Returns

\Pop\Image\Adapter\Imagick

loadGdFromString()

loadGdFromString(string  $data, string  $name = null) : \Pop\Image\Adapter\Gd

Load the image resource from data into a Gd object

Parameters

string $data
string $name

Returns

\Pop\Image\Adapter\Gd

loadGmagickFromString()

loadGmagickFromString(string  $data, string  $name = null) : \Pop\Image\Adapter\Gmagick

Load the image resource from data into a Gmagick object

Parameters

string $data
string $name

Returns

\Pop\Image\Adapter\Gmagick

loadImagickFromString()

loadImagickFromString(string  $data, string  $name = null) : \Pop\Image\Adapter\Imagick

Load the image resource from data into a Imagick object

Parameters

string $data
string $name

Returns

\Pop\Image\Adapter\Imagick

createGd()

createGd(integer  $width, integer  $height, string  $image = null) : \Pop\Image\Adapter\Gd

Create a new image resource and load it into a Gd object

Parameters

integer $width
integer $height
string $image

Returns

\Pop\Image\Adapter\Gd

createGdIndex()

createGdIndex(integer  $width, integer  $height, string  $image = null) : \Pop\Image\Adapter\Gd

Create a new indexed image resource and load it into a Gd object

Parameters

integer $width
integer $height
string $image

Returns

\Pop\Image\Adapter\Gd

createGmagick()

createGmagick(integer  $width, integer  $height, string  $image = null) : \Pop\Image\Adapter\Gmagick

Create a new image resource and load it into a Gmagick object

Parameters

integer $width
integer $height
string $image

Returns

\Pop\Image\Adapter\Gmagick

createGmagickIndex()

createGmagickIndex(integer  $width, integer  $height, string  $image = null) : \Pop\Image\Adapter\Gmagick

Create a new indexed image resource and load it into a Gmagick object

Parameters

integer $width
integer $height
string $image

Returns

\Pop\Image\Adapter\Gmagick

createImagick()

createImagick(integer  $width, integer  $height, string  $image = null) : \Pop\Image\Adapter\Imagick

Create a new image resource and load it into a Imagick object

Parameters

integer $width
integer $height
string $image

Returns

\Pop\Image\Adapter\Imagick

createImagickIndex()

createImagickIndex(integer  $width, integer  $height, string  $image = null) : \Pop\Image\Adapter\Imagick

Create a new indexde image resource and load it into a Imagick object

Parameters

integer $width
integer $height
string $image

Returns

\Pop\Image\Adapter\Imagick