Image resizer and converter
package |
Framework |
---|---|
subpackage |
Utils |
__construct($filename)
props() : mixed
mixed
Hash array with image props like type, width, height
resize(int $size, string $filename = null, boolean $browser_compat = false) : mixed
If an image is smaller than specified size it will be not resized.
int
Max width/height size
string
Output filename
boolean
Convert to image type displayable by any browser
mixed
Output type on success, False on failure
convert(int $type, string $filename = null) : bool
int
Destination file type (see class constants)
string
Output filename (if empty, original file will be used
and filename extension will be modified)
bool
True on success, False on failure
identify()
TYPE_GIF
TYPE_JPG
TYPE_PNG
TYPE_TIF
image_file :
extensions :