__construct()
_init()
border()
config()
crop()
crop_resize()
extension()
flip()
grayscale()
load()
mask()
output()
preset()
reload()
resize()
rotate()
rounded()
run_queue()
save()
save_pa()
sizes()
watermark()
_border()
_crop()
_crop_resize()
_grayscale()
_mask()
_resize()
_rotate()
_rounded()
_watermark()
add_background()
check_extension()
convert_number()
create_hex_color()
debug()
queue()
$accepted_extensions
$config
$image_directory
$image_extension
$image_filename
$image_fullpath
$new_extension
$queued_actions
__construct($config)
_init() : void
border(integer $size, string $color) : \Fuel\Core\Image_Driver
integerThe side of the border, in pixels.
stringA hexadecimal color.
config(string $index, mixed $value) : \Fuel\Core\Image_Driver
stringThe index to be set, or an array of configuration options.
mixedThe value to be set if $index is not an array.
crop(integer $x1, integer $y1, integer $x2, integer $y2) : \Fuel\Core\Image_Driver
Positive whole numbers or percentages are coordinates from the top left.
Negative whole numbers or percentages are coordinates from the bottom right.
integerX-Coordinate for first set.
integerY-Coordinate for first set.
integerX-Coordinate for second set.
integerY-Coordinate for second set.
crop_resize($width, $height)
extension() : string
stringFile extensionflip(mixed $direction) : \Fuel\Core\Image_Driver
load(string $filename, string $return_data, mixed $force_extension) : \Fuel\Core\Image_Driver
stringThe file to load
stringDecides if it should return the images data, or just "$this".
mixedDecides if it should force the extension with this (or false)
mask(string $maskimage) : \Fuel\Core\Image_Driver
stringThe location of the image to use as the mask
output(string $filetype) : array
stringThe extension type to use. Ex: png, jpg, gif
\FuelException |
|---|
arraypreset(string $name) : \Fuel\Core\Image_Driver
Additional parameters replace the $1, $2, ect.
stringThe name of the preset.
resize(integer $width, integer $height, boolean $keepar, boolean $pad) : \Fuel\Core\Image_Driver
If the width or height is null, it will resize retaining the original aspect ratio.
integerThe new width of the image.
integerThe new height of the image.
booleanIf false, allows stretching of the image.
booleanAdds padding to the image when resizing.
rotate(integer $degrees) : \Fuel\Core\Image_Driver
integerThe degrees to rotate, negatives integers allowed.
rounded(integer $radius, integer $sides, integer $antialias) : \Fuel\Core\Image_Driver
integer
integerAccepts any combination of "tl tr bl br" separated by spaces, or null for all sides
integerSets the anti-alias range.
run_queue(boolean $clear)
booleanDecides if the queue should be cleared once completed.
save(string $filename, string $permissions) : array
stringThe location where to save the image.
stringAllows unix style permissions
arraysave_pa(string $append, string $prepend, string $extension, integer $permissions) : \Fuel\Core\Image_Driver
stringThe string to append to the filename
stringThe string to prepend to the filename
stringThe extension to save the image as, null defaults to the loaded images extension.
integerThe permissions to attempt to set on the file.
sizes(string $filename) : object
stringThe location of the file to get sizes for.
objectAn object containing width and height variables.watermark(string $filename, string $position, integer $padding) : \Fuel\Core\Image_Driver
stringThe filename of the watermark file to use.
stringThe position of the watermark, ex: "bottom right", "center center", "top left"
integerThe amount of padding (in pixels) from the position.
_border(integer $size, string $color) : array
Formats the border method input for use with driver specific methods
integerThe side of the border, in pixels.
stringA hexadecimal color.
arrayAn array of variables for the specific driver._crop(integer $x1, integer $y1, integer $x2, integer $y2) : array
Formats the crop method input for use with driver specific methods
integerX-Coordinate for first set.
integerY-Coordinate for first set.
integerX-Coordinate for second set.
integerY-Coordinate for second set.
arrayAn array of variables for the specific driver._crop_resize($width, $height)
_grayscale()
_mask(string $maskimage) : array
Formats the mask method input for use with driver specific methods
stringThe location of the image to use as the mask
arrayAn array of variables for the specific driver._resize(integer $width, integer $height, boolean $keepar, boolean $pad) : array
Formats the resize method input for use with driver specific methods.
integerThe new width of the image.
integerThe new height of the image.
booleanIf false, allows stretching of the image.
booleanAdds padding to the image when resizing.
arrayAn array of variables for the specific driver._rotate(integer $degrees) : array
Formats the rotate method input for use with driver specific methods
integerThe degrees to rotate, negatives integers allowed.
arrayAn array of variables for the specific driver._rounded(integer $radius, integer $sides, integer $antialias) : array
Formats the rounded method input for use with driver specific methods
integer
integerAccepts any combination of "tl tr bl br" separated by spaces, or null for all sides
integerSets the anti-alias range.
arrayAn array of variables for the specific driver._watermark(string $filename, string $position, integer $padding) : array
Formats the watermark method input for use with driver specific methods
stringThe filename of the watermark file to use.
stringThe position of the watermark, ex: "bottom right", "center center", "top left"
integerThe amount of padding (in pixels) from the position.
arrayAn array of variables for the specific driver.add_background()
check_extension(string $filename, boolean $writevar, mixed $force_extension) : boolean
string
booleanDecides if the extension should be written to $this->image_extension
mixedDecides if the extension should be overridden with this (or false)
booleanconvert_number(string $input, boolean $x) : integer
string
booleanDetermines if the number relates to the x-axis or y-axis.
integerThe converted number, usable with the image being edited.create_hex_color(string $hex) : array
stringThe hex code of the color
arrayrgba representation of the hex and alpha values.debug()
queue(string $function)
stringThe name of the function to be ran, without the leading _
$accepted_extensions
$config
$image_directory
$image_extension
$image_filename
$image_fullpath
$new_extension
$queued_actions