Class Klutz_Image
Klutz Image Class
public
|
#
Klutz_Image( string $image, string $type = null, integer $height = null, integer $width = null )
Constructor - Based on the information passed, loads an image, determines the size and type, etc., and stores the information in the various public properties. Any optional parameters not passed in are calculated to the best of our ability. |
public
string
|
$file
The name of the file the image is stored in (if it's stored locally) |
#
null
|
public
string
|
$data
The image data itself (binary) |
#
null
|
public
integer
|
$height
The height of the image in pixels |
#
null
|
public
integer
|
$width
The width of the image in pixels |
#
null
|
public
string
|
$type
The mime type of the image |
#
null
|
public
string
|
$size
The attributes to use in an tag to define the size (e.g. height="120" width="400") |
#
null
|
public
integer
|
$lastmodified
The last modified time of the file (only used if file is local). |
#
0
|