PHP Class Pimcore\Image\Adapter\GD

Inheritance: extends Pimcore\Image\Adapter
Mostra file Open project: pimcore/pimcore

Protected Properties

Property Type Description
$path string
$resource mixed contains imageresource

Public Methods

Method Description
addOverlay ( $image, $x, $y, $alpha = 100, $composite = "COMPOSITE_DEFAULT", $origin = 'top-left' )
crop ( $x, $y, $width, $height ) : self
frame ( $width, $height ) : self
grayscale ( ) : self
load ( $imagePath, array $options = [] )
mirror ( string $mode )
resize ( $width, $height ) : self
rotate ( $angle )
save ( $path, null $format = null, null $quality = null )
sepia ( ) : self
setBackgroundColor ( $color ) : Adapter
setBackgroundImage ( $image, null | string $mode = null )

Protected Methods

Method Description
createImage ( $width, $height ) : resource
destroy ( ) : void
hasAlphaChannel ( ) : boolean

Method Details

addOverlay() public method

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

createImage() protected method

protected createImage ( $width, $height ) : resource
$width
$height
return resource

crop() public method

public crop ( $x, $y, $width, $height ) : self
$x
$y
$width
$height
return self

destroy() protected method

protected destroy ( ) : void
return void

frame() public method

public frame ( $width, $height ) : self
$width
$height
return self

grayscale() public method

public grayscale ( ) : self
return self

hasAlphaChannel() protected method

protected hasAlphaChannel ( ) : boolean
return boolean

load() public method

public load ( $imagePath, array $options = [] )
$imagePath
$options array

mirror() public method

public mirror ( string $mode )
$mode string

resize() public method

public resize ( $width, $height ) : self
$width
$height
return self

rotate() public method

public rotate ( $angle )
$angle

save() public method

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

sepia() public method

public sepia ( ) : self
return self

setBackgroundColor() public method

public setBackgroundColor ( $color ) : Adapter
$color
return Pimcore\Image\Adapter

setBackgroundImage() public method

public setBackgroundImage ( $image, null | string $mode = null )
$image
$mode null | string

Property Details

$path protected_oe property

protected string $path
return string

$resource protected_oe property

contains imageresource
protected mixed $resource
return mixed