Class ImageMagickCommand

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

public class ImageMagickCommand extends AbstractMagickCommand
  • Field Details

    • PROP_EXECUTABLE_CONVERT

      public static final String PROP_EXECUTABLE_CONVERT
      System property name for Image Magick command executable, convert.
      See Also:
    • PROP_EXECUTABLE_IDENTIFY

      public static final String PROP_EXECUTABLE_IDENTIFY
      System property name for Image Magick command executable, identify.
      See Also:
  • Constructor Details

    • ImageMagickCommand

      public ImageMagickCommand(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_CONVERT. If not found from the system property, it uses the default Image Magick convert command executable, AbstractMagickCommand.DEFAULT_SUBCOMMAND_CONVERT.
      Parameters:
      executable - (optional) executable of ImageMagick command
      subCommand - sub-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