class ImagickBackend extends Imagick implements Image_Backend

Config options

default_quality int

Methods

void
__construct(string $filename = null)

__construct

void
writeTo(string $path)

writeTo

static void
set_default_quality(int $quality) deprecated

set_default_quality

void
setQuality(int $quality)

setQuality

void
setImageResource(mixed $resource)

setImageResource

mixed
getImageResource()

getImageResource

boolean
hasImageResource()

hasImageResource

boolean
imageAvailable(string $filename, string $manipulation)

No description

resize(int $width, int $height)

resize

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

resizeRatio

resizeByWidth(int $width)

resizeByWidth

resizeByHeight(int $height)

resizeByHeight

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

paddedResize

string
calculateAlphaHex($percent)

Convert a percentage (or 'true') to a two char hex code to signifiy the level of an alpha channel

croppedResize(int $width, int $height)

croppedResize

crop(int $top, int $left, int $width, int $height)

Crop's part of image.

void
onBeforeDelete(Image $frontend)

No description

Details

at line 23
void __construct(string $filename = null)

__construct

Parameters

string $filename = null

Return Value

void

at line 36
void writeTo(string $path)

writeTo

Parameters

string $path

Return Value

void

at line 49
static void set_default_quality(int $quality) deprecated

deprecated 4.0 Use the "ImagickBackend.default_quality" config setting instead

set_default_quality

Parameters

int $quality

Return Value

void

at line 62
void setQuality(int $quality)

setQuality

Parameters

int $quality

Return Value

void

at line 74
void setImageResource(mixed $resource)

setImageResource

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

Parameters

mixed $resource

Return Value

void

at line 85
mixed getImageResource()

getImageResource

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

Return Value

mixed

at line 94
boolean hasImageResource()

hasImageResource

Return Value

boolean

at line 105
boolean imageAvailable(string $filename, string $manipulation)

Parameters

string $filename
string $manipulation

Return Value

boolean

at line 116
Image_Backend resize(int $width, int $height)

resize

Parameters

int $width
int $height

Return Value

Image_Backend

at line 148
Image_Backend resizeRatio($maxWidth, $maxHeight, $useAsMinimum = false)

resizeRatio

Parameters

$maxWidth
$maxHeight
$useAsMinimum

Return Value

Image_Backend

at line 171
Image_Backend resizeByWidth(int $width)

resizeByWidth

Parameters

int $width

Return Value

Image_Backend

at line 188
Image_Backend resizeByHeight(int $height)

resizeByHeight

Parameters

int $height

Return Value

Image_Backend

at line 207
Image_Backend paddedResize($width, $height, $backgroundColor = "FFFFFF", $transparencyPercent)

paddedResize

Parameters

$width
$height
$backgroundColor
$transparencyPercent

Return Value

Image_Backend

at line 233
string calculateAlphaHex($percent)

Convert a percentage (or 'true') to a two char hex code to signifiy the level of an alpha channel

Parameters

$percent

Return Value

string

at line 253
Image_Backend croppedResize(int $width, int $height)

croppedResize

Parameters

int $width
int $height

Return Value

Image_Backend

at line 287
Image_Backend crop(int $top, int $left, int $width, int $height)

Crop's part of image.

Parameters

int $top y position of left upper corner of crop rectangle
int $left x position of left upper corner of crop rectangle
int $width rectangle width
int $height rectangle height

Return Value

Image_Backend

at line 303
void onBeforeDelete(Image $frontend)

Parameters

Image $frontend

Return Value

void