Class GraphicsMagickCommand

java.lang.Object
org.onehippo.forge.gallerymagick.core.command.AbstractMagickCommand
org.onehippo.forge.gallerymagick.core.command.GraphicsMagickCommand

public class GraphicsMagickCommand extends AbstractMagickCommand
  • Field Details

  • Constructor Details

    • GraphicsMagickCommand

      public GraphicsMagickCommand(String executable, String subCommand)
      Constructor with an 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.
      Parameters:
      executable - executable of Graphics Magick command
      subCommand - sub-command of gm command
  • Method Details

    • createCommandLine

      protected org.apache.commons.exec.CommandLine createCommandLine()
      Create a CommandLine from executable and arguments.
      Specified by:
      createCommandLine in class AbstractMagickCommand
      Returns:
      a CommandLine from executable and arguments