Class DefaultImageMagickDetector
java.lang.Object
com.broadleafcommerce.asset.service.support.DefaultImageMagickDetector
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if the ImageMagick commandline utillity is available on the current machine.protected Process
-
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 interfaceImageMagickDetector
- Returns:
- true if ImageMagick is available, false otherwise
-
runMagickVersionCommand
- Throws:
IOException
-