array discoverBinary(
[
$imageMagickPath = null]
)
|
|
Check if we need to prefix every command with another binary name
ImageMagick 4.x: <none> ImageMagick 5.x, 6.x: <none> GraphicsMagick: "gm"
Parameters:
API Tags:
| Return: | GalleryStatus string name of the binary |
array discoverColorspaceSupport(
[
$imageMagickPath = null]
)
|
|
Checks if we can detect and convert jpegs with CMYK colorspace
Parameters:
API Tags:
| Return: | GalleryStatus boolean true if CMYK is supported |
array discoverCompositeCmd(
[
$imageMagickPath = null]
)
|
|
Checks which composite binary is available in this ImageMagick.
ImageMagick 4.x: combine ImageMagick 5.x, 6.x: composite GraphicsMagick: composite
Parameters:
API Tags:
| Return: | GalleryStatus string name of the binary (defaults to composite) |
array discoverMimeTypes(
[string
$imageMagickPath = null]
)
|
|
Find out which mime types our ImageMagick installation supports.
This is done by trying to run 'identify' on a couple of sample images.
Parameters:
|
string |
$imageMagickPath: |
(optional) path to the ImageMagick we are testing; if not given, use the 'imagemagick.path' module parameter |
API Tags:
| Return: | GalleryStatus array supported mime-types |
array discoverRemoveMetaDataSwitch(
[
$imageMagickPath = null]
)
|
|
Checks which switch to use to remove meta-data from jpegs
ImageMagick 4.x: <none> ImageMagick 5.x, 6.x, GraphicsMagick: +profile '*' ImageMagick 6.x: -strip
Parameters:
API Tags:
| Return: | GalleryStatus array the needed parameters |
array discoverVersion(
[
$imageMagickPath = null]
)
|
|
Discovers the version of the installed ImageMagick/GraphicsMagick
Parameters:
API Tags:
| Return: | GalleryStatus array string "ImageMagick" | "GraphicsMagick" string version boolean true if version is vulnerable to http://nvd.nist.gov/nvd.cfm?cvename=CVE-2007-1797 or http://nvd.nist.gov/nvd.cfm?cvename=CVE-2006-3744 or http://nvd.nist.gov/nvd.cfm?cvename=CVE-2005-1739 |
array getCommand(
string
$cmd, [string
$imageMagickPath = null]
)
|
|
Return an array of cmds needed to execute ImageMagick/GraphicsMagick commands
Parameters:
|
string |
$cmd: |
an ImageMagick command (eg. "convert") |
|
string |
$imageMagickPath: |
(optional) ImageMagick path (default=module configuration) |
API Tags:
| Return: | GalleryStatus array commands |
Figure out what operations and properties are supported by the ImageMagickToolkit and return them.
API Tags:
| Return: | a status code array('operations' => ..., 'properties' => ...) |
GalleryStatus savePlatformParameters(
[
$imageMagickPath = null]
)
|
|
Given a imageMagickPath, discover and store some platform-specific settings in the plugins parameter map
Parameters:
array testBinaries(
string
$imageMagickPath
)
|
|
Test if the given path has a working set of ImageMagick binaries.
This is done by trying to run 'identify' on a sample image.
Parameters:
|
string |
$imageMagickPath: |
path to the ImageMagick we are testing |
API Tags:
| Return: | GalleryStatus general status of tests array ('name' => string: the name of the binary, 'success' => boolean: test successful? 'message' => string: the error message, in case of IMAGEMAGIC_TEST_ERROR) |