Class Image
Manipulate images using standard methods such as resize, crop, rotate, etc. This class must be re-initialized for every image you wish to manipulate.
$Id: Image.php 3809 2008-12-18 12:48:41Z OscarB $
Package: Image
Copyright: (c) 2007-2008 Kohana Team
License: http://kohanaphp.com/license.html
Author: Kohana Team
Located at phundament/p3extensions/components/image/Image.php
Copyright: (c) 2007-2008 Kohana Team
License: http://kohanaphp.com/license.html
Author: Kohana Team
Located at phundament/p3extensions/components/image/Image.php
Methods summary
public static
object
|
|
public
|
|
public
mixed
|
|
public
object
|
#
resize( integer $width, integer $height, integer $master = NULL )
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. |
public
object
|
|
public
object
|
|
public
object
|
|
public
object
|
|
public
object
|
|
public
object
|
|
public
object
|
|
protected
boolean
|
Magic methods summary
Constants summary
integer |
NONE
|
1 |
|
integer |
AUTO
|
2 |
|
integer |
HEIGHT
|
3 |
|
integer |
WIDTH
|
4 |
|
integer |
HORIZONTAL
|
5 |
|
integer |
VERTICAL
|
6 |
Properties summary
public static
array
|
$allowed_types | |
protected
mixed
|
$driver | |
protected
array
|
$actions | |
protected
string
|
$image |