SproutCMS

This is the code documentation for the SproutCMS project

class ImageDriver

Image API driver.

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-16
**/
class NewClassName extends ImageDriver {
    
    /**
    * Sharpen and image. Valid amounts are 1 to 100.
    **/
    public function sharpen (integer $amount) {
        // Method code goes here
    }
    
    /**
    * Resize an image. Valid properties are: width, height, and master.
    **/
    public function resize (array $properties) {
        // Method code goes here
    }
    
    /**
    * Rotate an image. Valid amounts are -180 to 180.
    **/
    public function rotate (integer $amount) {
        // Method code goes here
    }
    
    /**
    * Return the current width and height of the temporary image. This is mainly
    * needed for sanitizing the geometry.
    **/
    protected function properties () {
        // Method code goes here
    }
    
    /**
    * Process an image with a set of actions.
    **/
    public function process (string $image, array $actions, string $dir, string $file) {
        // Method code goes here
    }
    
    /**
    * Flip an image. Valid directions are horizontal and vertical.
    **/
    public function flip (integer $direction) {
        // Method code goes here
    }
    
    /**
    * Crop an image. Valid properties are: width, height, top, left.
    **/
    public function crop (array $properties) {
        // Method code goes here
    }
    
    /**
    * Executes a set of actions, defined in pairs.
    **/
    public function execute (array $actions) {
        // Method code goes here
    }
    
    /**
    * Sanitize and normalize a geometry array based on the temporary image
    * width and height. Valid properties are: width, height, top, left.
    **/
    protected function sanitizeGeometry (array $geometry) {
        // Method code goes here
    }
    
}
?>