Estimate the dimensions of a GalleryDerivativeImage from its operations and its source.
Parameters:
Redefined in descendants as:
array applyTransform(
string
$transformOperation, string
$targetOperations, [boolean
$reverse = false]
)
|
|
Apply the transform operation to the set of target operations. The transform operation
will typically have happened upstream from the target operations, so we have to adjust the target operations to take it into account. For example, if the target operations include a crop operation and upstream we rotate|90 it, then you'd want to rotate the crop's parameters accordingly.
Parameters:
string |
$transformOperation: |
the upstream transform |
string |
$targetOperations: |
the current set of operations |
boolean |
$reverse: |
true if we should apply the transform in reverse |
API Tags:
Return: | boolean success or failure string the new set of operations |
array getProperty(
string
$mimeType, string
$propertyName, string
$sourceFilename
)
|
|
Get a certain property of a file
Parameters:
string |
$mimeType: |
|
string |
$propertyName: |
|
string |
$sourceFilename: |
|
API Tags:
Return: | GalleryStatus a status code, mixed the value of the property |
Redefined in descendants as:
array mergeOperations(
string
$operation1, array
$args1, string
$operation2, array
$args2
)
|
|
Merge two operations together in an intelligent way. The end result of
the merge should be a new operation and arguments that would result if you applied the operations in sequence. For example, if the operations are 'rotate|90' and 'rotate|180', then the result would be 'rotate|270' (or 'rotate|-90'). The toolkit should only merge the operations if it can do so cleanly.
Parameters:
string |
$operation1: |
the first operation |
array |
$args1: |
the first operation's arguments |
string |
$operation2: |
the second operation |
array |
$args2: |
the second operation's arguments |
API Tags:
Return: | (true if the operation was success, $mergedOperation, $mergedArgs) |
Redefined in descendants as:
array performOperation(
string
$mimeType, string
$operationName, string
$sourceFilename, string
$destFilename, array
$parameters, [array
$context = array()]
)
|
|
Perform a certain operation
Perform the wanted operation on sourceFilename and write the results in destFilename. Note: Rules for 'width' and 'height' keys in $context.. If w/h are present in context and toolkit performs an operation that changes the w/h then it must update the context with the new values. (This is optional if the context previously had no w/h values)
Parameters:
string |
$mimeType: |
|
string |
$operationName: |
|
string |
$sourceFilename: |
the source file name |
string |
$destFilename: |
the destination file name (it will be overwritten if it exists) |
array |
$parameters: |
|
array |
$context: |
(optional) context data |
API Tags:
Return: | GalleryStatus a status code string the output mime type array context data |
Redefined in descendants as: