__destruct()
load()
output()
save()
sizes()
_border()
_crop()
_flip()
_grayscale()
_mask()
_resize()
_rotate()
_rounded()
_watermark()
add_background()
clear_sizes()
create_color()
exec()
$accepted_extensions
$im_path
$image_temp
$sizes_cache
__destruct()
load($filename, $return_data, $force_extension)
output($filetype)
save($filename, $permissions)
sizes($filename, $usecache)
_border($size, $color)
_crop($x1, $y1, $x2, $y2)
_flip($direction)
_grayscale()
_mask($maskimage)
_resize($width, $height, $keepar, $pad)
_rotate($degrees)
_rounded($radius, $sides, $antialias)
Note there is a defect with this, as non-transparent corners get opaque circles of color. Maybe mask it with auto-generated corners?
link | http://www.imagemagick.org/Usage/thumbnails/#rounded |
---|
_watermark($filename, $position, $padding)
add_background()
clear_sizes()
create_color(string $hex, integer $alpha) : string
string
The hex code of the color
integer
The alpha of the color, 0 (trans) to 100 (opaque)
string
rgba representation of the hex and alpha values.exec(string $program, string $params, boolean $passthru) : mixed
string
The name of the executable.
string
The parameters of the executable.
boolean
Returns the output if false or pass it to browser.
mixed
Either returns the output or returns nothing.$accepted_extensions
$im_path
$image_temp
$sizes_cache