class ImagickBackend extends Imagick implements Image_Backend (View source)

Properties

Methods

public
void
__construct(string $filename = null)

__construct

public
void
writeTo(string $path)

writeTo

public static 
void
set_default_quality(int $quality) deprecated

set_default_quality

public
void
setQuality(int $quality)

setQuality

public
void
setImageResource(mixed $resource)

setImageResource

public
mixed
getImageResource()

getImageResource

public
bool
hasImageResource()

hasImageResource

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

No description

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", int $transparencyPercent = 0)

paddedResize

public
string
calculateAlphaHex($percent)

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

public
croppedResize(int $width, int $height)

croppedResize

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

Crop's part of image.

public
void
onBeforeDelete(Image $frontend)

No description

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

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

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

bool imageAvailable(string $filename, string $manipulation)

No description

Implement memory checking for Imagick? See {@link GD}

Parameters

string $filename
string $manipulation

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", int $transparencyPercent = 0)

paddedResize

Parameters

int $width
int $height
$backgroundColor
int $transparencyPercent

Return Value

Image_Backend

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

Image_Backend croppedResize(int $width, int $height)

croppedResize

Parameters

int $width
int $height

Return Value

Image_Backend

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

void onBeforeDelete(Image $frontend)

No description

Parameters

Image $frontend

Return Value

void