Image API driver.
This is the code documentation for the SproutCMS project
Search documentation |
class ImageDriverImage API driver.
Variables
Functions
public cropboolean $ImageDriver->crop ( array $properties ); Crop an image. Valid properties are: width, height, top, left. public executeboolean $ImageDriver->execute ( array $actions ); Executes a set of actions, defined in pairs. public flipboolean $ImageDriver->flip ( integer $direction ); Flip an image. Valid directions are horizontal and vertical. public processboolean $ImageDriver->process ( string $image , array $actions , string $dir , string $file ); Process an image with a set of actions. protected propertiesarray $ImageDriver->properties ( ); Return the current width and height of the temporary image. This is mainly needed for sanitizing the geometry. public resizeboolean $ImageDriver->resize ( array $properties ); Resize an image. Valid properties are: width, height, and master. public rotateboolean $ImageDriver->rotate ( integer $amount ); Rotate an image. Valid amounts are -180 to 180. protected sanitizeGeometryvoid $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 sharpenboolean $ImageDriver->sharpen ( integer $amount ); Sharpen and image. Valid amounts are 1 to 100. |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|