Class DefaultImageMagickDetector

java.lang.Object
com.broadleafcommerce.asset.service.support.DefaultImageMagickDetector
All Implemented Interfaces:
ImageMagickDetector

public class DefaultImageMagickDetector extends Object implements ImageMagickDetector
Executes the convert --version command and examines the output to determine whether the ImageMagick commandline utility is available on the current machine.
Author:
Samarth Dhruva (samarthd)
  • Constructor Details

    • DefaultImageMagickDetector

      public DefaultImageMagickDetector()
  • Method Details

    • imageMagickAvailable

      public boolean imageMagickAvailable()
      Description copied from interface: ImageMagickDetector
      Determines if the ImageMagick commandline utillity is available on the current machine.
      Specified by:
      imageMagickAvailable in interface ImageMagickDetector
      Returns:
      true if ImageMagick is available, false otherwise
    • runMagickVersionCommand

      protected Process runMagickVersionCommand() throws IOException
      Throws:
      IOException