EasyBlogSimpleImage
in package
Table of Contents
Properties
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
$height
public
mixed
$height
= \null
$image
public
mixed
$image
= \null
$path
public
mixed
$path
= \null
$resource
public
mixed
$resource
= \null
$type
public
mixed
$type
= \null
$width
public
mixed
$width
= \null
Methods
crop()
Crops an image
public
crop(mixed $width, mixed $height) : mixed
Parameters
- $width : mixed
- $height : mixed
Tags
fixOrientation()
Fix the orientation of the image
public
fixOrientation() : mixed
Tags
getHeight()
Returns the height of the image
public
getHeight() : mixed
Tags
getWidth()
Retrieves the width of the image
public
getWidth() : mixed
Tags
load()
Loads an image resource given the path to the file
public
load(mixed $filePath) : mixed
Parameters
- $filePath : 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, mixed $height) : mixed
Parameters
- $width : mixed
- $height : mixed
Tags
resizeToFill()
Resize an image to fill a provided width / height
public
resizeToFill(mixed $maxWidth, mixed $maxHeight) : mixed
Parameters
- $maxWidth : mixed
- $maxHeight : mixed
Tags
resizeToFit()
Resizes an image to fit the width and height specified
public
resizeToFit(mixed $maxWidth, mixed $maxHeight) : mixed
Parameters
- $maxWidth : mixed
- $maxHeight : mixed
Tags
resizeToHeight()
Resizes an image to the specified height
public
resizeToHeight(mixed $height) : mixed
Parameters
- $height : mixed
Tags
resizeToWidth()
Resizes an image to the specified width
public
resizeToWidth(mixed $width) : mixed
Parameters
- $width : mixed
Tags
resizeWithin()
Resize an image within a specified maximum width / height canvas.
public
resizeWithin(mixed $maxWidth, mixed $maxHeight) : mixed
Parameters
- $maxWidth : mixed
- $maxHeight : mixed
Tags
rotate()
Rotates an image resource
public
rotate(mixed $degrees) : mixed
Parameters
- $degrees : mixed
Tags
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
scale()
Scales an image
public
scale(mixed $scale) : mixed
Parameters
- $scale : mixed
Tags
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