interface Image_Backend (View source)

Image_Backend

A backend for manipulation of images via the Image class

Methods

public
void
__construct(string $filename = null)

__construct

public
void
writeTo(string $path)

writeTo

public
void
setQuality(int $quality)

setQuality

public
void
setImageResource(mixed $resource)

setImageResource

public
mixed
getImageResource()

getImageResource

public
bool
hasImageResource()

hasImageResource

public
resize(int $width, int $height)

resize

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

resizeRatio

public
resizeByWidth(int $width)

resizeByWidth

public
resizeByHeight(int $height)

resizeByHeight

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

paddedResize

public
croppedResize(int $width, int $height)

croppedResize

public
bool
imageAvailable(string $filename, string $manipulation)

imageAvailable

public
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