_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
integer
The side of the border, in pixels.
string
A 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().
array
An 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.
integer
X-Coordinate based from the top-left corner.
integer
Y-Coordinate based from the top-left corner.
integer
X-Coordinate based from the bottom-right corner.
integer
Y-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.
integer
The new width of the image.
integer
The new height of the image.
flip(string $direction) : \Fuel\Core\Image_Driver
forge(array $config, string $filename) : \Fuel\Core\Image_Driver
array
string
The file to load
\FuelException |
---|
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
Whether or not to force the image extension
mask(string $maskimage) : \Fuel\Core\Image_Driver
string
The location of the image to use as the mask
output(string $filetype) : \Fuel\Core\Image_Driver
string
The 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.
integer
The new width of the image.
integer
The new height of the image.
boolean
Defaults to true. If false, allows resizing without keeping AR.
boolean
If set to true and $keepar is true, it will pad the image with the configured bgcolor
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.
save(string $filename, string $permissions) : \Fuel\Core\Image_Driver
string
The location where to save the image.
string
Allows unix style permissions
save_pa(string $prepend, string $append, string $permissions) : \Fuel\Core\Image_Driver
string
The text to add to the beginning of the filename.
string
The text to add to the end of the filename.
string
Allows unix style permissions
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 | array $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
array
The spacing between the edge of the image, or an array with seperate horizontal and vertical padding
$_config : array
$_instance