LDAP Account Manager

ImageManipulatorImagick
in package
implements ImageManipulator

Manipulates images using Imagick library.

Tags
author

Roland Gruber

Interfaces, Classes, Traits and Enums

ImageManipulator
Modifies images.

Table of Contents

$image  : Imagick
Image
__construct()  : mixed
Constructor.
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.

Properties

Methods

__construct()

Constructor.

public __construct(string $imageData) : mixed
Parameters
$imageData : string

original image as binary string

Return values
mixed

convertToJpeg()

Converts the image to JPEG format.

public convertToJpeg() : mixed
Tags
see
ImageManipulator::getAsJpeg()
Return values
mixed

crop()

Crops the image.

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

starting point in original image

$y : mixed

starting point in original image

$width : mixed

width of target size

$height : mixed

height of target size

Tags
see
ImageManipulator::crop()
Return values
mixed

thumbnail()

Resizes the image to the given maximum dimensions.

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

width

$height : mixed

height

Tags
see
ImageManipulator::resize()
Return values
mixed

Search results