SproutCMS

This is the code documentation for the SproutCMS project

function resize()

On the fly image resizing

The size parameter is the new size.
The first character is taken to be the resize type, accepts 'r' or 'c' or 'm':
Meaning 'r'esize, 'c'rop or 'm'ax resize (do not scale up).
The width and height is specified width . 'x' . height (e.g. 200x100)

Usage

void $FileController->resize ( mixed $size , mixed $filename );

Arguments

  1. $size
  2. $filename

Return value

  • void