Image_Backend
interface Image_Backend
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
boolean
hasImageResource()
hasImageResource
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")
paddedResize
croppedResize(int $width, int $height)
croppedResize
boolean
imageAvailable(string $filename, string $manipulation)
imageAvailable
void
Details
at line 18
void
__construct(string $filename = null)
__construct
at line 26
void
writeTo(string $path)
writeTo
at line 34
void
setQuality(int $quality)
setQuality
at line 44
void
setImageResource(mixed $resource)
setImageResource
Set the backend-specific resource handling the manipulations. Replaces Image::setGD()
at line 53
mixed
getImageResource()
getImageResource
Get the backend-specific resource handling the manipulations. Replaces Image::getGD()
at line 60
boolean
hasImageResource()
hasImageResource
at line 69
Image_Backend
resize(int $width, int $height)
resize
at line 78
Image_Backend
resizeRatio($maxWidth, $maxHeight, $useAsMinimum = false)
resizeRatio
at line 86
Image_Backend
resizeByWidth(int $width)
resizeByWidth
at line 94
Image_Backend
resizeByHeight(int $height)
resizeByHeight
at line 103
Image_Backend
paddedResize($width, $height, $backgroundColor = "FFFFFF")
paddedResize
at line 112
Image_Backend
croppedResize(int $width, int $height)
croppedResize
at line 121
boolean
imageAvailable(string $filename, string $manipulation)
imageAvailable
at line 129
void
onBeforeDelete(Image $frontend)
onBeforeDelete