SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class ImageDriver

Image API driver.

Variables

NameVisibilityDescription
$errors 
$image 
$tmp_image 

Functions

NameVisibilityDescription
croppublicCrop an image. Valid properties are: width, height, top, left.
executepublicExecutes a set of actions, defined in pairs.
flippublicFlip an image. Valid directions are horizontal and vertical.
processpublicProcess an image with a set of actions.
propertiesprotectedReturn the current width and height of the temporary image. This is mainly
resizepublicResize an image. Valid properties are: width, height, and master.
rotatepublicRotate an image. Valid amounts are -180 to 180.
sanitizeGeometryprotectedSanitize and normalize a geometry array based on the temporary image
sharpenpublicSharpen and image. Valid amounts are 1 to 100.

public crop

boolean $ImageDriver->crop ( array $properties );

Crop an image. Valid properties are: width, height, top, left.

public execute

boolean $ImageDriver->execute ( array $actions );

Executes a set of actions, defined in pairs.

public flip

boolean $ImageDriver->flip ( integer $direction );

Flip an image. Valid directions are horizontal and vertical.

public process

boolean $ImageDriver->process ( string $image , array $actions , string $dir , string $file );

Process an image with a set of actions.

protected properties

array $ImageDriver->properties ( );

Return the current width and height of the temporary image. This is mainly
needed for sanitizing the geometry.

public resize

boolean $ImageDriver->resize ( array $properties );

Resize an image. Valid properties are: width, height, and master.

public rotate

boolean $ImageDriver->rotate ( integer $amount );

Rotate an image. Valid amounts are -180 to 180.

protected sanitizeGeometry

void $ImageDriver->sanitizeGeometry ( array &$geometry );

Sanitize and normalize a geometry array based on the temporary image
width and height. Valid properties are: width, height, top, left.

public sharpen

boolean $ImageDriver->sharpen ( integer $amount );

Sharpen and image. Valid amounts are 1 to 100.