eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZImageGDHandler

class eZImageGDHandler extends eZImageHandler

Constants

KEEP_SUFFIX

REPLACE_SUFFIX

PREPEND_TAG_REPLACE_SUFFIX

Properties

$Path
$Executable
$PreParameters
$PostParameters

Methods

eZImageHandler($handlerName, $isEnabled = true, $outputRewriteType = self::REPLACE_SUFFIX, $supportedInputMIMETypes = false, $supportedOutputMIMETypes, $conversionRules = false, $filters = false, $mimeTagMap = false)

from eZImageHandler
isAvailable()

from eZImageHandler
tagForMIMEType($mimeData)

from eZImageHandler
supportedImageFilters()

from eZImageHandler
conversionRules()

from eZImageHandler
textForFilter($filterData)

from eZImageHandler
rewriteURL($originalMimeData, $destinationMimeData, $rewriteType, $aliasName = false)

from eZImageHandler
supportedInputMIMETypes()

from eZImageHandler
supportedOutputMIMETypes()

from eZImageHandler
isOutputMIMETypeSupported($mimeData)

from eZImageHandler
isInputMIMETypeSupported($mimeData)

from eZImageHandler
outputMIMEType($manager, $currentMimeData, $wantedMimeData, $supportedFormatsOriginal, $aliasName = false)

from eZImageHandler
outputRewriteType()

from eZImageHandler
isFilterSupported($filter)

from eZImageHandler
convert($manager, $sourceMimeData, $destinationMimeData, $filters = false)

eZImageGDHandler($handlerName, $isGloballyEnabled, $outputRewriteType = self::REPLACE_SUFFIX, $conversionRules = false)

setImageBorderWidth($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

setImageBorder($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

createImageBorder($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

setImageColorspaceGray($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

setImageLuminance($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

setImageLuminanceNamed($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

setImageLuminanceColorScale($imageObject, $filterData, $sourceMimeData, $destinationMimeData, $colorScale)

setImageColorThresholdName($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

cropImage($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

scaleImage($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

scaleImageDownOnly($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

scaleImageWidth($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

scaleImageHeight($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

scaleImageWidthDownOnly($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

scaleImageHeightDownOnly($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

scaleImageExact($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

scaleImagePercent($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

calculateScaledAspectGeometry($sourceWidth, $sourceHeight, $destinationWidth, $destinationHeight, $allowUpScale)

calculateScaledPercentAspectGeometry($sourceWidth, $sourceHeight, $destinationWidthPercent, $destinationHeightPercent, $allowUpScale)

calculateFixedWidthAspectGeometry($sourceWidth, $sourceHeight, $destinationWidth, $allowUpScale)

calculateFixedHeightAspectGeometry($sourceWidth, $sourceHeight, $destinationHeight, $allowUpScale)

Details

in eZImageHandler at line 35
public eZImageHandler($handlerName, $isEnabled = true, $outputRewriteType = self::REPLACE_SUFFIX, $supportedInputMIMETypes = false, $supportedOutputMIMETypes, $conversionRules = false, $filters = false, $mimeTagMap = false)

Parameters

$handlerName
$isEnabled
$outputRewriteType
$supportedInputMIMETypes
$supportedOutputMIMETypes
$conversionRules
$filters
$mimeTagMap

in eZImageHandler at line 71
public isAvailable()

in eZImageHandler at line 82
public tagForMIMEType($mimeData)

Parameters

$mimeData

in eZImageHandler at line 97
public supportedImageFilters()

in eZImageHandler at line 105
public conversionRules()

in eZImageHandler at line 153
public textForFilter($filterData)

Parameters

$filterData

in eZImageHandler at line 172
public rewriteURL($originalMimeData, $destinationMimeData, $rewriteType, $aliasName = false)

Parameters

$originalMimeData
$destinationMimeData
$rewriteType
$aliasName

in eZImageHandler at line 221
public supportedInputMIMETypes()

in eZImageHandler at line 232
public supportedOutputMIMETypes()

in eZImageHandler at line 285
public isOutputMIMETypeSupported($mimeData)

Parameters

$mimeData

in eZImageHandler at line 312
public isInputMIMETypeSupported($mimeData)

Parameters

$mimeData

in eZImageHandler at line 346
public outputMIMEType($manager, $currentMimeData, $wantedMimeData, $supportedFormatsOriginal, $aliasName = false)

Parameters

$manager
$currentMimeData
$wantedMimeData
$supportedFormatsOriginal
$aliasName

in eZImageHandler at line 429
public outputRewriteType()

in eZImageHandler at line 437
public isFilterSupported($filter)

Parameters

$filter

at line 118
public convert($manager, $sourceMimeData, $destinationMimeData, $filters = false)

Parameters

$manager
$sourceMimeData
$destinationMimeData
$filters

at line 28
public eZImageGDHandler($handlerName, $isGloballyEnabled, $outputRewriteType = self::REPLACE_SUFFIX, $conversionRules = false)

Parameters

$handlerName
$isGloballyEnabled
$outputRewriteType
$conversionRules

at line 215
public setImageBorderWidth($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 221
public setImageBorder($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 227
public createImageBorder($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 252
public setImageColorspaceGray($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 263
public setImageLuminance($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 274
public setImageLuminanceNamed($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 293
public setImageLuminanceColorScale($imageObject, $filterData, $sourceMimeData, $destinationMimeData, $colorScale)

Parameters

$imageObject
$filterData
$sourceMimeData
$destinationMimeData
$colorScale

at line 333
public setImageColorThresholdName($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 399
public cropImage($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 422
public scaleImage($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 437
public scaleImageDownOnly($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 451
public scaleImageWidth($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 465
public scaleImageHeight($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 480
public scaleImageWidthDownOnly($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 495
public scaleImageHeightDownOnly($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 507
public scaleImageExact($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 517
public scaleImagePercent($imageObject, $filterData, $filterVariables, $sourceMimeData, $destinationMimeData)

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

at line 532
public calculateScaledAspectGeometry($sourceWidth, $sourceHeight, $destinationWidth, $destinationHeight, $allowUpScale)

Parameters

$sourceWidth
$sourceHeight
$destinationWidth
$destinationHeight
$allowUpScale

at line 563
public calculateScaledPercentAspectGeometry($sourceWidth, $sourceHeight, $destinationWidthPercent, $destinationHeightPercent, $allowUpScale)

Parameters

$sourceWidth
$sourceHeight
$destinationWidthPercent
$destinationHeightPercent
$allowUpScale

at line 580
public calculateFixedWidthAspectGeometry($sourceWidth, $sourceHeight, $destinationWidth, $allowUpScale)

Parameters

$sourceWidth
$sourceHeight
$destinationWidth
$allowUpScale

at line 605
public calculateFixedHeightAspectGeometry($sourceWidth, $sourceHeight, $destinationHeight, $allowUpScale)

Parameters

$sourceWidth
$sourceHeight
$destinationHeight
$allowUpScale