Documentation

Image
in package

Table of Contents

Properties

$adapter  : mixed
$image  : mixed
$meta  : mixed
$original  : mixed

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
since
1.0.0
access

public

getMime()

Retrieves the mime of the current image.

public getMime() : mixed
Tags
since
1.0.0
access

public

getWidth()

Gets the width of the image

public getWidth() : mixed
Tags
since
1.0.0
access

public

insert()

Inserts watermark queue into the image

public insert(mixed $resource[, mixed $position = 'center' ]) : mixed
Parameters
$resource : mixed
$position : mixed = 'center'
Tags
since
1.0.0
access

public

load()

Loads an image resource given the path to the file

public load(mixed $path[, mixed $name = '' ]) : mixed
Parameters
$path : mixed
$name : mixed = ''
Tags
since
1.0.0
access

public

output()

Outputs the image resource

public output([mixed $type = null ]) : mixed
Parameters
$type : mixed = null
Tags
since
1.0.0
access

public

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
since
1.0.0
access

public

rotate()

Rotates an image resource

public rotate(mixed $angle) : mixed
Parameters
$angle : mixed
Tags
since
1.0.0
access

public

save()

Saves the image

public save(mixed $target[, mixed $quality = 80 ]) : mixed
Parameters
$target : mixed
$quality : mixed = 80
Tags
since
1.0.0
access

public

updateOrientation()

Update the orientation of the image if necessary

public updateOrientation() : mixed
Tags
since
1.0.0
access

public


        
On this page

Search results