public class GraphicsMagickCommand extends AbstractMagickCommand
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_EXECUTABLE
Default Graphics Magick command executable.
|
static String |
PROP_EXECUTABLE
System property name for Graphics Magick command executable.
|
DEFAULT_SUBCOMMAND_CONVERT, PROP_TIMEOUT
Constructor and Description |
---|
GraphicsMagickCommand(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
DEFAULT_EXECUTABLE
.public static final String DEFAULT_EXECUTABLE
public GraphicsMagickCommand(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
.
If not found from the system property, it uses the default Graphics Magick executable, DEFAULT_EXECUTABLE
.executable
- executable of Graphics Magick commandsubCommand
- sub-command of gm
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.