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 TypeMethodDescriptionbooleanDetermines 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:ImageMagickDetectorDetermines if the ImageMagick commandline utillity is available on the current machine.- Specified by:
imageMagickAvailablein interfaceImageMagickDetector- Returns:
- true if ImageMagick is available, false otherwise
-
runMagickVersionCommand
- Throws:
IOException
-