Class

eZImageGDHandler

class eZImageGDHandler extends eZImageHandler

Constants

KEEP_SUFFIX

REPLACE_SUFFIX

PREPEND_TAG_REPLACE_SUFFIX

Properties

$Path
$Executable
$PreParameters
$PostParameters

Methods

__construct(string $handlerName, $isGloballyEnabled, int $outputRewriteType = self::REPLACE_SUFFIX, array|bool $conversionRules = false)

Initializes the image handler with data sent from the inheriting class.

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)

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

at line 25
public __construct(string $handlerName, $isGloballyEnabled, int $outputRewriteType = self::REPLACE_SUFFIX, array|bool $conversionRules = false)

Initializes the image handler with data sent from the inheriting class.

Parameters

string $handlerName The name of the current handler
$isGloballyEnabled
int $outputRewriteType Defines how output filenames are rewritten
array|bool $conversionRules A list of conversion rules specific for this handler, is combined with the global rules

in eZImageHandler at line 72
public isAvailable()

in eZImageHandler at line 83
public tagForMIMEType($mimeData)

Parameters

$mimeData

in eZImageHandler at line 98
public supportedImageFilters()

in eZImageHandler at line 106
public conversionRules()

in eZImageHandler at line 154
public textForFilter($filterData)

Parameters

$filterData

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

Parameters

$originalMimeData
$destinationMimeData
$rewriteType
$aliasName

in eZImageHandler at line 222
public supportedInputMIMETypes()

in eZImageHandler at line 233
public supportedOutputMIMETypes()

in eZImageHandler at line 286
public isOutputMIMETypeSupported($mimeData)

Parameters

$mimeData

in eZImageHandler at line 313
public isInputMIMETypeSupported($mimeData)

Parameters

$mimeData

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

Parameters

$manager
$currentMimeData
$wantedMimeData
$supportedFormatsOriginal
$aliasName

in eZImageHandler at line 430
public outputRewriteType()

in eZImageHandler at line 438
public isFilterSupported($filter)

Parameters

$filter

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

Parameters

$manager
$sourceMimeData
$destinationMimeData
$filters

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$sourceMimeData
$destinationMimeData
$colorScale

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$imageObject
$filterData
$filterVariables
$sourceMimeData
$destinationMimeData

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

Parameters

$sourceWidth
$sourceHeight
$destinationWidth
$destinationHeight
$allowUpScale

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

Parameters

$sourceWidth
$sourceHeight
$destinationWidthPercent
$destinationHeightPercent
$allowUpScale

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

Parameters

$sourceWidth
$sourceHeight
$destinationWidth
$allowUpScale

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

Parameters

$sourceWidth
$sourceHeight
$destinationHeight
$allowUpScale