interface Image_Backend (View source)

Image_Backend

A backend for manipulation of images via the Image class

Methods

void
__construct(string $filename = null)

__construct

void
writeTo(string $path)

writeTo

void
setQuality(int $quality)

setQuality

void
setImageResource(mixed $resource)

setImageResource

mixed
getImageResource()

getImageResource

bool
hasImageResource()

hasImageResource

resize(int $width, int $height)

resize

resizeRatio($maxWidth, $maxHeight, $useAsMinimum = false)

resizeRatio

resizeByWidth(int $width)

resizeByWidth

resizeByHeight(int $height)

resizeByHeight

paddedResize(int $width, int $height, $backgroundColor = "FFFFFF")

paddedResize

croppedResize(int $width, int $height)

croppedResize

bool
imageAvailable(string $filename, string $manipulation)

imageAvailable

void
onBeforeDelete(Image $frontend)

onBeforeDelete

Details

void __construct(string $filename = null)

__construct

Parameters

string $filename

= null

Return Value

void

void writeTo(string $path)

writeTo

Parameters

string $path

Return Value

void

void setQuality(int $quality)

setQuality

Parameters

int $quality

Return Value

void

void setImageResource(mixed $resource)

setImageResource

Set the backend-specific resource handling the manipulations. Replaces Image::setGD()

Parameters

mixed $resource

Return Value

void

mixed getImageResource()

getImageResource

Get the backend-specific resource handling the manipulations. Replaces Image::getGD()

Return Value

mixed

bool hasImageResource()

hasImageResource

Return Value

bool

Image_Backend resize(int $width, int $height)

resize

Parameters

int $width
int $height

Return Value

Image_Backend

Image_Backend resizeRatio($maxWidth, $maxHeight, $useAsMinimum = false)

resizeRatio

Parameters

$maxWidth
$maxHeight
$useAsMinimum

Return Value

Image_Backend

Image_Backend resizeByWidth(int $width)

resizeByWidth

Parameters

int $width

Return Value

Image_Backend

Image_Backend resizeByHeight(int $height)

resizeByHeight

Parameters

int $height

Return Value

Image_Backend

Image_Backend paddedResize(int $width, int $height, $backgroundColor = "FFFFFF")

paddedResize

Parameters

int $width
int $height
$backgroundColor

Return Value

Image_Backend

Image_Backend croppedResize(int $width, int $height)

croppedResize

Parameters

int $width
int $height

Return Value

Image_Backend

bool imageAvailable(string $filename, string $manipulation)

imageAvailable

Parameters

string $filename
string $manipulation

Return Value

bool

void onBeforeDelete(Image $frontend)

onBeforeDelete

Parameters

Image $frontend

Return Value

void