Image resizer and converter
| package |
Framework |
|---|---|
| subpackage |
Utils |
__construct(string $filename)
stringImage file name/path
convert(integer $type, string $filename = null) : boolean
integerDestination file type (see class constants)
stringOutput filename (if empty, original file will be used and filename extension will be modified)
booleanTrue on success, False on failure
identify()
is_convertable( $mimetype = null) : boolean
booleanTrue if specified format can be converted to another format
mem_check( $props)
props() : mixed
mixedHash array with image props like type, width, height
resize(integer $size, string $filename = null, boolean $browser_compat = false) : mixed
If an image is smaller than specified size it will be not resized.
integerMax width/height size
stringOutput filename
booleanConvert to image type displayable by any browser
mixedOutput type on success, False on failure
TYPE_GIF
TYPE_JPG
TYPE_PNG
TYPE_TIF
image_file :
extensions :