Documentation

Image
in package

Image factory class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
4.0.0

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
Gd

createGdIndex()

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
throws
Exception
Return values
Gd

createImagick()

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
Imagick

createImagickIndex()

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
Imagick

getAvailableAdapters()

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
bool

loadGd()

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

public static loadGd(string $image) : Gd
Parameters
$image : string
Return values
Gd

loadGdFromString()

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
throws
Exception
Return values
Gd

loadImagick()

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

public static loadImagick(string $image) : Imagick
Parameters
$image : string
Return values
Imagick

loadImagickFromString()

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
Return values
Imagick

        
On this page

Search results