Image
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- getHeight() : mixed
- Gets the width of the image
- getMime() : mixed
- Retrieves the mime of the current image.
- getWidth() : mixed
- Gets the width of the image
- insert() : mixed
- Inserts watermark queue into the image
- load() : mixed
- Loads an image resource given the path to the file
- output() : mixed
- Outputs the image resource
- resize() : mixed
- Resizes the image
- rotate() : mixed
- Rotates an image resource
- save() : mixed
- Saves the image
- updateOrientation() : mixed
- Update the orientation of the image if necessary
Properties
$adapter
private
mixed
$adapter
= null
$image
private
mixed
$image
= null
$meta
private
mixed
$meta
= null
$original
private
mixed
$original
= null
Methods
__construct()
public
__construct([mixed $driver = 'gd' ]) : mixed
Parameters
- $driver : mixed = 'gd'
getHeight()
Gets the width of the image
public
getHeight() : mixed
Tags
getMime()
Retrieves the mime of the current image.
public
getMime() : mixed
Tags
getWidth()
Gets the width of the image
public
getWidth() : mixed
Tags
insert()
Inserts watermark queue into the image
public
insert(mixed $resource[, mixed $position = 'center' ]) : mixed
Parameters
- $resource : mixed
- $position : mixed = 'center'
Tags
load()
Loads an image resource given the path to the file
public
load(mixed $path[, mixed $name = '' ]) : mixed
Parameters
- $path : mixed
- $name : mixed = ''
Tags
output()
Outputs the image resource
public
output([mixed $type = null ]) : mixed
Parameters
- $type : mixed = null
Tags
resize()
Resizes the image
public
resize([mixed $width = null ][, mixed $height = null ][, mixed $respectAspectRatio = true ][, mixed $preventUpsize = true ]) : mixed
Parameters
- $width : mixed = null
- $height : mixed = null
- $respectAspectRatio : mixed = true
- $preventUpsize : mixed = true
Tags
rotate()
Rotates an image resource
public
rotate(mixed $angle) : mixed
Parameters
- $angle : mixed
Tags
save()
Saves the image
public
save(mixed $target[, mixed $quality = 80 ]) : mixed
Parameters
- $target : mixed
- $quality : mixed = 80
Tags
updateOrientation()
Update the orientation of the image if necessary
public
updateOrientation() : mixed