Documentation

EasyBlogSimpleImage
in package

Table of Contents

Properties

$height  : mixed
$image  : mixed
$path  : mixed
$resource  : mixed
$type  : mixed
$width  : mixed

Methods

crop()  : mixed
Crops an image
fixOrientation()  : mixed
Fix the orientation of the image
getHeight()  : mixed
Returns the height of the image
getWidth()  : mixed
Retrieves the width of 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
resizeToFill()  : mixed
Resize an image to fill a provided width / height
resizeToFit()  : mixed
Resizes an image to fit the width and height specified
resizeToHeight()  : mixed
Resizes an image to the specified height
resizeToWidth()  : mixed
Resizes an image to the specified width
resizeWithin()  : mixed
Resize an image within a specified maximum width / height canvas.
rotate()  : mixed
Rotates an image resource
save()  : mixed
Deprecated. Use @write instead
scale()  : mixed
Scales an image
write()  : mixed
Saves the current image resource

Properties

Methods

crop()

Crops an image

public crop(mixed $width, mixed $height) : mixed
Parameters
$width : mixed
$height : mixed
Tags
since
5.0
access

public

fixOrientation()

Fix the orientation of the image

public fixOrientation() : mixed
Tags
since
5.0
access

public

getHeight()

Returns the height of the image

public getHeight() : mixed
Tags
since
5.0
access

public

getWidth()

Retrieves the width of the image

public getWidth() : mixed
Tags
since
5.0
access

public

load()

Loads an image resource given the path to the file

public load(mixed $filePath) : mixed
Parameters
$filePath : mixed
Tags
since
5.0
access

public

output()

Outputs the image resource

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

public

resize()

Resizes the image

public resize(mixed $width, mixed $height) : mixed
Parameters
$width : mixed
$height : mixed
Tags
since
5.0
access

public

resizeToFill()

Resize an image to fill a provided width / height

public resizeToFill(mixed $maxWidth, mixed $maxHeight) : mixed
Parameters
$maxWidth : mixed
$maxHeight : mixed
Tags
since
5.0
access

public

resizeToFit()

Resizes an image to fit the width and height specified

public resizeToFit(mixed $maxWidth, mixed $maxHeight) : mixed
Parameters
$maxWidth : mixed
$maxHeight : mixed
Tags
since
5.0
access

public

resizeToHeight()

Resizes an image to the specified height

public resizeToHeight(mixed $height) : mixed
Parameters
$height : mixed
Tags
since
5.0
access

public

resizeToWidth()

Resizes an image to the specified width

public resizeToWidth(mixed $width) : mixed
Parameters
$width : mixed
Tags
since
5.0
access

public

resizeWithin()

Resize an image within a specified maximum width / height canvas.

public resizeWithin(mixed $maxWidth, mixed $maxHeight) : mixed
Parameters
$maxWidth : mixed
$maxHeight : mixed
Tags
since
5.0
access

public

rotate()

Rotates an image resource

public rotate(mixed $degrees) : mixed
Parameters
$degrees : mixed
Tags
since
5.0
access

public

save()

Deprecated. Use @write instead

public save(mixed $filename[, mixed $image_type = IMAGETYPE_JPEG ][, mixed $compression = 80 ][, mixed $permissions = null ]) : mixed
Parameters
$filename : mixed
$image_type : mixed = IMAGETYPE_JPEG
$compression : mixed = 80
$permissions : mixed = null
Tags
since
5.0
access

public

scale()

Scales an image

public scale(mixed $scale) : mixed
Parameters
$scale : mixed
Tags
since
5.0
access

public

write()

Saves the current image resource

public write(mixed $destination[, mixed $compression = 80 ][, mixed $type = null ]) : mixed
Parameters
$destination : mixed
$compression : mixed = 80
$type : mixed = null
Tags
since
5.0
access

public


        
On this page

Search results