class Adapter (View source)

Methods

$this
setHeight($height)

No description

int
getHeight()

No description

$this
setWidth($width)

No description

int
getWidth()

No description

array
colorhex2colorarray($colorhex)

No description

resize($width, $height)

No description

scaleByWidth($width, bool $forceResize = false)

No description

scaleByHeight($height, bool $forceResize = false)

No description

contain($width, $height, bool $forceResize = false)

No description

cover($width, $height, string $orientation = 'center', bool $forceResize = false)

No description

$this
frame($width, $height, bool $forceResize = false)

No description

trim(int $tolerance)

No description

$this
rotate($angle)

No description

crop($x, $y, $width, $height)

No description

setBackgroundColor($color)

No description

setBackgroundImage($image)

No description

$this
roundCorners($width, $height)

No description

addOverlay($image, $x, $y, $alpha = 100, $composite = 'COMPOSITE_DEFAULT', $origin = 'top-left')

No description

$this
addOverlayFit($image, string $composite = 'COMPOSITE_DEFAULT')

No description

applyMask($image)

No description

cropPercent($width, $height, $x, $y)

No description

grayscale()

No description

sepia()

No description

sharpen()

No description

mirror($mode)

No description

$this|Adapter
gaussianBlur(int $radius, float $sigma = 1.0)

No description

$this
brightnessSaturation(int $brightness = 100, int $saturation = 100, int $hue = 100)

No description

load($imagePath, $options = array())

No description

mixed
save($path, null $format = null, null $quality = null)

No description

preModify()

No description

postModify()

No description

__destruct()

No description

bool
isVectorGraphic()

No description

array
getVectorRasterDimensions()

No description

$this
setColorspace(string $type = 'RGB')

No description

setUseContentOptimizedFormat(boolean $useContentOptimizedFormat)

No description

boolean
getUseContentOptimizedFormat()

No description

setModified(boolean $modified)

No description

boolean
getModified()

No description

setIsAlphaPossible(bool $value)

No description

boolean
isPreserveColor()

No description

setPreserveColor(boolean $preserveColor)

No description

boolean
isPreserveMetaData()

No description

setPreserveMetaData(boolean $preserveMetaData)

No description

Details

at line line 71
$this setHeight($height)

Parameters

$height

Return Value

$this

at line line 81
int getHeight()

Return Value

int

at line line 90
$this setWidth($width)

Parameters

$width

Return Value

$this

at line line 100
int getWidth()

Return Value

int

at line line 126
array colorhex2colorarray($colorhex)

Parameters

$colorhex

Return Value

array

at line line 141
Adapter resize($width, $height)

Parameters

$width
$height

Return Value

Adapter

at line line 151
Adapter scaleByWidth($width, bool $forceResize = false)

Parameters

$width
bool $forceResize

Return Value

Adapter

at line line 166
Adapter scaleByHeight($height, bool $forceResize = false)

Parameters

$height
bool $forceResize

Return Value

Adapter

at line line 182
Adapter contain($width, $height, bool $forceResize = false)

Parameters

$width
$height
bool $forceResize

Return Value

Adapter

at line line 204
Adapter cover($width, $height, string $orientation = 'center', bool $forceResize = false)

Parameters

$width
$height
string $orientation
bool $forceResize

Return Value

Adapter

at line line 264
$this frame($width, $height, bool $forceResize = false)

Parameters

$width
$height
bool $forceResize

Return Value

$this

at line line 273
Adapter trim(int $tolerance)

Parameters

int $tolerance

Return Value

Adapter

at line line 282
$this rotate($angle)

Parameters

$angle

Return Value

$this

at line line 294
Adapter crop($x, $y, $width, $height)

Parameters

$x
$y
$width
$height

Return Value

Adapter

at line line 304
Adapter setBackgroundColor($color)

Parameters

$color

Return Value

Adapter

at line line 313
Adapter setBackgroundImage($image)

Parameters

$image

Return Value

Adapter

at line line 324
$this roundCorners($width, $height)

Parameters

$width
$height

Return Value

$this

at line line 337
Adapter addOverlay($image, $x, $y, $alpha = 100, $composite = 'COMPOSITE_DEFAULT', $origin = 'top-left')

Parameters

$image
$x
$y
$alpha
$composite
$origin

Return Value

Adapter

at line line 347
$this addOverlayFit($image, string $composite = 'COMPOSITE_DEFAULT')

Parameters

$image
string $composite

Return Value

$this

at line line 356
Adapter applyMask($image)

Parameters

$image

Return Value

Adapter

at line line 368
Adapter cropPercent($width, $height, $x, $y)

Parameters

$width
$height
$x
$y

Return Value

Adapter

at line line 390
Adapter grayscale()

Return Value

Adapter

at line line 398
Adapter sepia()

Return Value

Adapter

at line line 406
Adapter sharpen()

Return Value

Adapter

at line line 414
Adapter mirror($mode)

Parameters

$mode

Return Value

Adapter

at line line 424
$this|Adapter gaussianBlur(int $radius, float $sigma = 1.0)

Parameters

int $radius
float $sigma

Return Value

$this|Adapter

at line line 435
$this brightnessSaturation(int $brightness = 100, int $saturation = 100, int $hue = 100)

Parameters

int $brightness
int $saturation
int $hue

Return Value

$this

at line line 445
abstract Adapter load($imagePath, $options = array())

Parameters

$imagePath
$options

Return Value

Adapter

at line line 454
abstract mixed save($path, null $format = null, null $quality = null)

Parameters

$path
null $format
null $quality

Return Value

mixed

at line line 466
preModify()

at line line 476
postModify()

at line line 506
__destruct()

at line line 516
bool isVectorGraphic()

Return Value

bool

at line line 524
array getVectorRasterDimensions()

Return Value

array

at line line 539
$this setColorspace(string $type = 'RGB')

Parameters

string $type

Return Value

$this

at line line 547
setUseContentOptimizedFormat(boolean $useContentOptimizedFormat)

Parameters

boolean $useContentOptimizedFormat

at line line 555
boolean getUseContentOptimizedFormat()

Return Value

boolean

at line line 563
setModified(boolean $modified)

Parameters

boolean $modified

at line line 571
boolean getModified()

Return Value

boolean

at line line 579
setIsAlphaPossible(bool $value)

Parameters

bool $value

at line line 587
boolean isPreserveColor()

Return Value

boolean

at line line 595
setPreserveColor(boolean $preserveColor)

Parameters

boolean $preserveColor

at line line 603
boolean isPreserveMetaData()

Return Value

boolean

at line line 611
setPreserveMetaData(boolean $preserveMetaData)

Parameters

boolean $preserveMetaData