PHP Класс Pimcore\Image\Adapter\Imagick

Наследование: extends Pimcore\Image\Adapter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$CMYKColorProfile string
$RGBColorProfile string
$imagePath string
$resource Imagick

Открытые методы

Метод Описание
addOverlay ( string $image, integer $x, integer $y, integer $alpha = 100, $composite = "COMPOSITE_DEFAULT", string $origin = 'top-left' ) : self
addOverlayFit ( $image, string $composite = "COMPOSITE_DEFAULT" )
applyMask ( $image ) : self
brightnessSaturation ( integer $brightness = 100, integer $saturation = 100, integer $hue = 100 )
crop ( $x, $y, $width, $height ) : self
frame ( $width, $height )
gaussianBlur ( integer $radius, float $sigma = 1 )
getCMYKColorProfile ( ) : string
getDimensions ( ) : array
getRGBColorProfile ( ) : string
getVectorFormatEmbeddedRasterDimensions ( ) : array | null
getVectorRasterDimensions ( ) : array
grayscale ( ) : self
isVectorGraphic ( null $imagePath = null ) : boolean
load ( $imagePath, array $options = [] )
mirror ( $mode )
resize ( $width, $height ) : self
rotate ( $angle )
roundCorners ( $width, $height )
save ( $path, null $format = null, null $quality = null )
sepia ( ) : self
setBackgroundColor ( $color ) : self
setBackgroundImage ( $image, null | string $mode = null )
setCMYKColorProfile ( string $CMYKColorProfile )
setColorspaceToRGB ( )
setRGBColorProfile ( string $RGBColorProfile )
sharpen ( integer $radius, float $sigma = 1, float $amount = 1, float $threshold = 0.05 )
trim ( $tolerance ) : self

Защищенные методы

Метод Описание
createImage ( $width, $height, $color = "transparent" ) : Imagick
destroy ( ) : void
hasAlphaChannel ( ) : boolean

Описание методов

addOverlay() публичный Метод

public addOverlay ( string $image, integer $x, integer $y, integer $alpha = 100, $composite = "COMPOSITE_DEFAULT", string $origin = 'top-left' ) : self
$image string
$x integer Amount of horizontal pixels the overlay should be offset from the origin
$y integer Amount of vertical pixels the overlay should be offset from the origin
$alpha integer Opacity in a scale of 0 (transparent) to 100 (opaque)
$origin string Origin of the X and Y coordinates (top-left, top-right, bottom-left, bottom-right or center)
Результат self

addOverlayFit() публичный Метод

public addOverlayFit ( $image, string $composite = "COMPOSITE_DEFAULT" )
$image
$composite string

applyMask() публичный Метод

public applyMask ( $image ) : self
$image
Результат self

brightnessSaturation() публичный Метод

public brightnessSaturation ( integer $brightness = 100, integer $saturation = 100, integer $hue = 100 )
$brightness integer
$saturation integer
$hue integer

createImage() защищенный Метод

protected createImage ( $width, $height, $color = "transparent" ) : Imagick
$width
$height
Результат Imagick

crop() публичный Метод

public crop ( $x, $y, $width, $height ) : self
$x
$y
$width
$height
Результат self

destroy() защищенный Метод

protected destroy ( ) : void
Результат void

frame() публичный Метод

public frame ( $width, $height )
$width
$height

gaussianBlur() публичный Метод

public gaussianBlur ( integer $radius, float $sigma = 1 )
$radius integer
$sigma float

getCMYKColorProfile() публичный статический Метод

public static getCMYKColorProfile ( ) : string
Результат string

getDimensions() публичный Метод

public getDimensions ( ) : array
Результат array

getRGBColorProfile() публичный статический Метод

public static getRGBColorProfile ( ) : string
Результат string

getVectorFormatEmbeddedRasterDimensions() публичный Метод

public getVectorFormatEmbeddedRasterDimensions ( ) : array | null
Результат array | null

getVectorRasterDimensions() публичный Метод

public getVectorRasterDimensions ( ) : array
Результат array

grayscale() публичный Метод

public grayscale ( ) : self
Результат self

hasAlphaChannel() защищенный Метод

protected hasAlphaChannel ( ) : boolean
Результат boolean

isVectorGraphic() публичный Метод

public isVectorGraphic ( null $imagePath = null ) : boolean
$imagePath null
Результат boolean

load() публичный Метод

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

mirror() публичный Метод

public mirror ( $mode )
$mode

resize() публичный Метод

public resize ( $width, $height ) : self
$width
$height
Результат self

rotate() публичный Метод

public rotate ( $angle )
$angle

roundCorners() публичный Метод

public roundCorners ( $width, $height )
$width
$height

save() публичный Метод

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

sepia() публичный Метод

public sepia ( ) : self
Результат self

setBackgroundColor() публичный Метод

public setBackgroundColor ( $color ) : self
$color
Результат self

setBackgroundImage() публичный Метод

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

setCMYKColorProfile() публичный статический Метод

public static setCMYKColorProfile ( string $CMYKColorProfile )
$CMYKColorProfile string

setColorspaceToRGB() публичный Метод

public setColorspaceToRGB ( )

setRGBColorProfile() публичный статический Метод

public static setRGBColorProfile ( string $RGBColorProfile )
$RGBColorProfile string

sharpen() публичный Метод

public sharpen ( integer $radius, float $sigma = 1, float $amount = 1, float $threshold = 0.05 )
$radius integer
$sigma float
$amount float
$threshold float

trim() публичный Метод

public trim ( $tolerance ) : self
$tolerance
Результат self

Описание свойств

$CMYKColorProfile защищенное статическое свойство

protected static string $CMYKColorProfile
Результат string

$RGBColorProfile защищенное статическое свойство

protected static string $RGBColorProfile
Результат string

$imagePath защищенное свойство

protected string $imagePath
Результат string

$resource защищенное свойство

protected Imagick,Pimcore\Image\Adapter $resource
Результат Imagick