void getProperty(
$mimeType,
$propertyName,
$sourceFilename
)
|
|
Parameters:
|
|
$mimeType: |
|
|
|
$propertyName: |
|
|
|
$sourceFilename: |
|
API Tags:
| See: | GalleryToolkit::getProperty |
Redefinition of:
- GalleryToolkit::getProperty()
- Get a certain property of a file
void performOperation(
$mimeType,
$operationName,
$sourceFilename,
$destFilename,
$parameters, [
$context = array()]
)
|
|
Parameters:
|
|
$mimeType: |
|
|
|
$operationName: |
|
|
|
$sourceFilename: |
|
|
|
$destFilename: |
|
|
|
$parameters: |
|
|
|
$context: |
|
API Tags:
| See: | GalleryToolkit::performOperation |
Redefinition of:
- GalleryToolkit::performOperation()
- Perform a certain operation
void _addResizeParam(
&$transform, int
$w, [int
$h = null], array
$transform
)
|
|
Add parameters for resizing image.
-size produces faster results when only resizing; incorrect results when combined with other operations like -crop
Parameters:
|
array |
$transform: |
parameters |
|
int |
$w: |
target size |
|
int |
$h: |
target height (optional) |
|
|
&$transform: |
|
API Tags:
void _getColorspace(
$filename
)
|
|
Call 'identify' to determine the image colorspace
Parameters:
API Tags:
void _getImageDimensions(
$mimeType,
$filename
)
|
|
Parameters:
API Tags:
| See: | GalleryToolkit::getImageDimensions |
void _getPageCount(
$filename,
$mimeType
)
|
|
Call 'identify' and count the pages
Parameters:
API Tags:
mixed _imageMagickCmd(
string
$cmd
)
|
|
Return the full path to the ImageMagick command
Parameters:
|
string |
$cmd: |
an ImageMagick command (eg. "convert") |
API Tags:
| Return: | string/error? |
| Access: | private |
GalleryStatus _transformImage(
string
$mimeType, string
$cmd, array
$args, string
$sourceFilename, string
$destFilename, string
$outputMimeType, [string
$jpegQuality = null]
)
|
|
Do the given transform on the source image
Parameters:
|
string |
$mimeType: |
source mime type |
|
string |
$cmd: |
the command to execute |
|
array |
$args: |
|
|
string |
$sourceFilename: |
the path to a source file |
|
string |
$destFilename: |
the path to a destination file |
|
string |
$outputMimeType: |
|
|
string |
$jpegQuality: |
(optional) |
API Tags:
| Return: | a status code |
| Access: | private |