Image_Backend
interface Image_Backend (View source)
Image_Backend
A backend for manipulation of images via the Image class
Methods
public
paddedResize(int $width, int $height, $backgroundColor = "FFFFFF")
paddedResize
Details
void
__construct(string $filename = null)
__construct
void
writeTo(string $path)
writeTo
void
setQuality(int $quality)
setQuality
void
setImageResource(mixed $resource)
setImageResource
Set the backend-specific resource handling the manipulations. Replaces Image::setGD()
mixed
getImageResource()
getImageResource
Get the backend-specific resource handling the manipulations. Replaces Image::getGD()
bool
hasImageResource()
hasImageResource
Image_Backend
resize(int $width, int $height)
resize
Image_Backend
resizeRatio($maxWidth, $maxHeight, $useAsMinimum = false)
resizeRatio
Image_Backend
resizeByWidth(int $width)
resizeByWidth
Image_Backend
resizeByHeight(int $height)
resizeByHeight
Image_Backend
paddedResize(int $width, int $height, $backgroundColor = "FFFFFF")
paddedResize
Image_Backend
croppedResize(int $width, int $height)
croppedResize
bool
imageAvailable(string $filename, string $manipulation)
imageAvailable
void
onBeforeDelete(Image $frontend)
onBeforeDelete