__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
stringThe hex code of the color
integerThe alpha of the color, 0 (trans) to 100 (opaque)
stringrgba representation of the hex and alpha values.exec(string $program, string $params, boolean $passthru) : mixed
stringThe name of the executable.
stringThe parameters of the executable.
booleanReturns the output if false or pass it to browser.
mixedEither returns the output or returns nothing.$accepted_extensions
$im_path
$image_temp
$sizes_cache