public class ImageMagickCommand extends AbstractMagickCommand
Modifier and Type | Field and Description |
---|---|
static String |
PROP_EXECUTABLE_CONVERT
System property name for Image Magick command executable, convert.
|
static String |
PROP_EXECUTABLE_IDENTIFY
System property name for Image Magick command executable, identify.
|
DEFAULT_SUBCOMMAND_CONVERT, PROP_TIMEOUT
Constructor and Description |
---|
ImageMagickCommand(String executable,
String subCommand)
Constructor with an
executable and a subCommand . |
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.exec.CommandLine |
createCommandLine()
Create a
CommandLine from executable and arguments. |
addArgument, clearArguments, execute, execute, getArguments, getExecutable, getSubCommand, getWorkingDirectory, setWorkingDirectory
public static final String PROP_EXECUTABLE_CONVERT
public static final String PROP_EXECUTABLE_IDENTIFY
public ImageMagickCommand(String executable, String subCommand)
executable
and a subCommand
.
If executable
is null, it tries to find it from a system property keyed by PROP_EXECUTABLE_CONVERT
.
If not found from the system property, it uses the default Image Magick convert command executable, AbstractMagickCommand.DEFAULT_SUBCOMMAND_CONVERT
.executable
- (optional) executable of ImageMagick commandsubCommand
- sub-commandprotected org.apache.commons.exec.CommandLine createCommandLine()
CommandLine
from executable and arguments.createCommandLine
in class AbstractMagickCommand
CommandLine
from executable and argumentsCopyright © 2019. All rights reserved.