__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
integer
The side of the border, in pixels.
string
A hexadecimal color.
config(string $index, mixed $value) : \Fuel\Core\Image_Driver
string
The index to be set, or an array of configuration options.
mixed
The 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.
integer
X-Coordinate for first set.
integer
Y-Coordinate for first set.
integer
X-Coordinate for second set.
integer
Y-Coordinate for second set.
crop_resize($width, $height)
extension() : string
string
File extensionflip(mixed $direction) : \Fuel\Core\Image_Driver
load(string $filename, string $return_data, mixed $force_extension) : \Fuel\Core\Image_Driver
string
The file to load
string
Decides if it should return the images data, or just "$this".
mixed
Decides if it should force the extension with this (or false)
mask(string $maskimage) : \Fuel\Core\Image_Driver
string
The location of the image to use as the mask
output(string $filetype) : array
string
The extension type to use. Ex: png, jpg, gif
\FuelException |
---|
array
preset(string $name) : \Fuel\Core\Image_Driver
Additional parameters replace the $1, $2, ect.
string
The 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.
integer
The new width of the image.
integer
The new height of the image.
boolean
If false, allows stretching of the image.
boolean
Adds padding to the image when resizing.
rotate(integer $degrees) : \Fuel\Core\Image_Driver
integer
The degrees to rotate, negatives integers allowed.
rounded(integer $radius, integer $sides, integer $antialias) : \Fuel\Core\Image_Driver
integer
integer
Accepts any combination of "tl tr bl br" separated by spaces, or null for all sides
integer
Sets the anti-alias range.
run_queue(boolean $clear)
boolean
Decides if the queue should be cleared once completed.
save(string $filename, string $permissions) : array
string
The location where to save the image.
string
Allows unix style permissions
array
save_pa(string $append, string $prepend, string $extension, integer $permissions) : \Fuel\Core\Image_Driver
string
The string to append to the filename
string
The string to prepend to the filename
string
The extension to save the image as, null defaults to the loaded images extension.
integer
The permissions to attempt to set on the file.
sizes(string $filename) : object
string
The location of the file to get sizes for.
object
An object containing width and height variables.watermark(string $filename, string $position, integer $padding) : \Fuel\Core\Image_Driver
string
The filename of the watermark file to use.
string
The position of the watermark, ex: "bottom right", "center center", "top left"
integer
The 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
integer
The side of the border, in pixels.
string
A hexadecimal color.
array
An 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
integer
X-Coordinate for first set.
integer
Y-Coordinate for first set.
integer
X-Coordinate for second set.
integer
Y-Coordinate for second set.
array
An 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
string
The location of the image to use as the mask
array
An 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.
integer
The new width of the image.
integer
The new height of the image.
boolean
If false, allows stretching of the image.
boolean
Adds padding to the image when resizing.
array
An array of variables for the specific driver._rotate(integer $degrees) : array
Formats the rotate method input for use with driver specific methods
integer
The degrees to rotate, negatives integers allowed.
array
An 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
integer
Accepts any combination of "tl tr bl br" separated by spaces, or null for all sides
integer
Sets the anti-alias range.
array
An 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
string
The filename of the watermark file to use.
string
The position of the watermark, ex: "bottom right", "center center", "top left"
integer
The amount of padding (in pixels) from the position.
array
An array of variables for the specific driver.add_background()
check_extension(string $filename, boolean $writevar, mixed $force_extension) : boolean
string
boolean
Decides if the extension should be written to $this->image_extension
mixed
Decides if the extension should be overridden with this (or false)
boolean
convert_number(string $input, boolean $x) : integer
string
boolean
Determines if the number relates to the x-axis or y-axis.
integer
The converted number, usable with the image being edited.create_hex_color(string $hex) : array
string
The hex code of the color
array
rgba representation of the hex and alpha values.debug()
queue(string $function)
string
The 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