SproutCMS

This is the code documentation for the SproutCMS project

function resize()

Resize an image to a specific width and height. By default, Kohana will
maintain the aspect ratio using the width as the master dimension. If you
wish to use height as master dim, set $image->master_dim = Image::HEIGHT
This method is chainable.

Usage

object $Image->resize ( integer $width , integer $height [, integer $master ] );

Arguments

  1. integer $width
    width
  2. integer $height
    height
  3. integer $master = NULL
    one of: Image::NONE, Image::AUTO, Image::WIDTH, Image::HEIGHT

Exceptions thrown

Return value

  • object