/** * Crop to a grid position of the image (top left... etc) */ public function action_grid_crop($position = 'c', $w = null, $h = null, $path = null) { $this->outputImage($this->getImagePath(4), array('w' => intval($w), 'h' => intval($h), 'fit' => \CMF\Image::getCropMode($position, 'crop-center'))); }