Interface ImageMagickService

All Known Implementing Classes:
DefaultImageMagickService

public interface ImageMagickService
Service exposing low-level functionality to access the ImageMagick convert and identify commands.

This service might also be implemented backed by the GraphicsMagick Image Processing system.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    convert(List<String> commandOptions)
    Executes a conversion with the specified list of options.
    identify(List<String> commandOptions)
    Executes image identification with the specified options.
  • Method Details

    • convert

      void convert(List<String> commandOptions) throws IOException
      Executes a conversion with the specified list of options. The options available are numerous and listed on the ImageMagick command line options page.
      Parameters:
      commandOptions - the bold command line options (including input and output files if applicable).
      Throws:
      IOException - on any error
    • identify

      String identify(List<String> commandOptions) throws IOException
      Executes image identification with the specified options. Please see ImageMagick Identify Command-line Tool for usage and option descriptions.
      Parameters:
      commandOptions - bold command line options to the identify command (including the input file).
      Returns:
      the commands (std) output.
      Throws:
      IOException - on any error.