Omeka_File_Derivative_StrategyInterface
Package: File\Derivative\Strategy
- interface Omeka_File_Derivative_StrategyInterface
Interface for pluggable file derivative creation strategies.
- createImage($sourcePath, $destPath, $type, $sizeConstraint, $mimeType)
Create an derivative of the given image.
- Parameters:
$sourcePath (
string
) – Local path to the source file.$destPath (
string
) – Local path to write the derivative to.$type (
string
) – The type of derivative being created.$sizeConstraint (
int
) – Size limitation on the derivative.$mimeType (
string
) – MIME type of the original file.
- Returns:
bool
- setOptions($options)
Set options for the derivative strategy.
- Parameters:
$options (
array
) –
- getOptions()
Get the options for the strategy.
- Returns:
array