Image
in package
Image factory class
Tags
Table of Contents
Methods
- createGd() : Gd
- Create a new image resource and load it into a Gd object
- createGdIndex() : Gd
- Create a new indexed image resource and load it into a Gd object
- createImagick() : Imagick
- Create a new image resource and load it into a Imagick object
- createImagickIndex() : Imagick
- Create a new indexed image resource and load it into a Imagick object
- getAvailableAdapters() : array<string|int, mixed>
- Get the available image adapters
- isAvailable() : bool
- Determine if the adapter is available
- loadGd() : Gd
- Load the image resource from the existing image file into a Gd object
- loadGdFromString() : Gd
- Load the image resource from data into a Gd object
- loadImagick() : Imagick
- Load the image resource from the existing image file into a Imagick object
- loadImagickFromString() : Imagick
- Load the image resource from data into a Imagick object
Methods
createGd()
Create a new image resource and load it into a Gd object
public
static createGd(int $width, int $height[, string|null $image = null ]) : Gd
Parameters
- $width : int
- $height : int
- $image : string|null = null
Return values
GdcreateGdIndex()
Create a new indexed image resource and load it into a Gd object
public
static createGdIndex(int $width, int $height[, string|null $image = null ]) : Gd
Parameters
- $width : int
- $height : int
- $image : string|null = null
Tags
Return values
GdcreateImagick()
Create a new image resource and load it into a Imagick object
public
static createImagick(int $width, int $height[, string|null $image = null ]) : Imagick
Parameters
- $width : int
- $height : int
- $image : string|null = null
Return values
ImagickcreateImagickIndex()
Create a new indexed image resource and load it into a Imagick object
public
static createImagickIndex(int $width, int $height[, string|null $image = null ]) : Imagick
Parameters
- $width : int
- $height : int
- $image : string|null = null
Return values
ImagickgetAvailableAdapters()
Get the available image adapters
public
static getAvailableAdapters() : array<string|int, mixed>
Return values
array<string|int, mixed>isAvailable()
Determine if the adapter is available
public
static isAvailable(string $adapter) : bool
Parameters
- $adapter : string
Return values
boolloadGd()
Load the image resource from the existing image file into a Gd object
public
static loadGd(string $image) : Gd
Parameters
- $image : string
Return values
GdloadGdFromString()
Load the image resource from data into a Gd object
public
static loadGdFromString(string $data[, string|null $name = null ]) : Gd
Parameters
- $data : string
- $name : string|null = null
Tags
Return values
GdloadImagick()
Load the image resource from the existing image file into a Imagick object
public
static loadImagick(string $image) : Imagick
Parameters
- $image : string
Return values
ImagickloadImagickFromString()
Load the image resource from data into a Imagick object
public
static loadImagickFromString(string $data[, string|null $name = null ]) : Imagick
Parameters
- $data : string
- $name : string|null = null