SproutCMS

This is the code documentation for the SproutCMS project

class CropImageTransform

Does image resizing, etc

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-05-07
**/
class NewClassName extends CropImageTransform {
    
    /**
    * Does the actual transform
    **/
    public function transform (Image $img) {
        // Method code goes here
    }
    
    /**
    * Estimate the RAM requirement to run this transform
    **/
    public function estimateRamRequirement () {
        // Method code goes here
    }
    
    /**
    * Constructor
    **/
    public function __construct (int $width, int $height, mixed $vert_pos, mixed $horiz_pos) {
        // Method code goes here
    }
    
}
?>