LDAP Account Manager

ImageManipulator
in

Modifies images.

Tags
author

Roland Gruber

Table of Contents

convertToJpeg()  : mixed
Converts the image to JPEG format.
crop()  : mixed
Crops the image.
getHeight()  : int
Returns the height of the image.
getImageData()  : string
Returns the image as binary string.
getWidth()  : int
Returns the width of the image.
thumbnail()  : mixed
Resizes the image to the given maximum dimensions.

Methods

convertToJpeg()

Converts the image to JPEG format.

public convertToJpeg() : mixed
Return values
mixed

crop()

Crops the image.

public crop(int $x, int $y, int $width, int $height) : mixed
Parameters
$x : int

starting point in original image

$y : int

starting point in original image

$width : int

width of target size

$height : int

height of target size

Return values
mixed

getHeight()

Returns the height of the image.

public getHeight() : int
Return values
int

height

getImageData()

Returns the image as binary string.

public getImageData() : string
Return values
string

image data

getWidth()

Returns the width of the image.

public getWidth() : int
Return values
int

width

thumbnail()

Resizes the image to the given maximum dimensions.

public thumbnail(int $width, int $height) : mixed
Parameters
$width : int

width

$height : int

height

Return values
mixed

Search results