_init()
border()
config()
crop()
crop_resize()
flip()
forge()
grayscale()
load()
mask()
output()
reload()
resize()
rotate()
rounded()
save()
save_pa()
sizes()
watermark()
instance()
$_config
$_instance
_init() : void
border(integer $size, string $color) : \Fuel\Core\Image_Driver
integerThe side of the border, in pixels.
stringA hexadecimal color.
config(array $index, mixed $value) : \Fuel\Core\Image_Driver
Sending the config options through the static reference initializes the instance. If you need to send a driver config through the static reference, make sure its the first one sent! If errors arise, create a new instance using forge().
arrayAn array of configuration settings.
mixed
crop(integer $x1, integer $y1, integer $x2, integer $y2) : \Fuel\Core\Image_Driver
Absolute integer or percentages accepted for all 4.
integerX-Coordinate based from the top-left corner.
integerY-Coordinate based from the top-left corner.
integerX-Coordinate based from the bottom-right corner.
integerY-Coordinate based from the bottom-right corner.
crop_resize(integer $width, integer $height) : \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.
flip(string $direction) : \Fuel\Core\Image_Driver
forge(array $config, string $filename) : \Fuel\Core\Image_Driver
array
stringThe file to load
\FuelException |
|---|
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".
mixedWhether or not to force the image extension
mask(string $maskimage) : \Fuel\Core\Image_Driver
stringThe location of the image to use as the mask
output(string $filetype) : \Fuel\Core\Image_Driver
stringThe extension type to use. Ex: png, jpg, bmp, gif
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.
booleanDefaults to true. If false, allows resizing without keeping AR.
booleanIf set to true and $keepar is true, it will pad the image with the configured bgcolor
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.
save(string $filename, string $permissions) : \Fuel\Core\Image_Driver
stringThe location where to save the image.
stringAllows unix style permissions
save_pa(string $prepend, string $append, string $permissions) : \Fuel\Core\Image_Driver
stringThe text to add to the beginning of the filename.
stringThe text to add to the end of the filename.
stringAllows unix style permissions
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 | array $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"
integerarrayThe spacing between the edge of the image, or an array with seperate horizontal and vertical padding
$_config : array
$_instance