public class ImageMagickUtil extends Object
| Constructor and Description |
|---|
ImageMagickUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Future<?> |
convert(List<String> arguments)
Executes the
convert command in ImageMagick. |
static void |
destroy() |
static String |
getGlobalSearchPath()
Returns the global search path configured for ImageMagick.
|
static ImageMagick |
getImageMagick() |
static Properties |
getResourceLimitsProperties()
Returns the cache and resource usage limits configured for ImageMagick.
|
static String[] |
identify(List<String> arguments)
Executes the
identify command in ImageMagick. |
static boolean |
isEnabled()
Returns
true if ImageMagick is enabled. |
static void |
reset()
Resets the global search path and resource limits for ImageMagick.
|
void |
setImageMagick(ImageMagick imageMagick) |
public static Future<?> convert(List<String> arguments) throws Exception
convert command in ImageMagick.arguments - the command arguments being passed to convert
Exception - if an unexpected error occurred while executing commandpublic static void destroy()
public static String getGlobalSearchPath() throws Exception
Exception - if an unexpected error occurredpublic static ImageMagick getImageMagick()
public static Properties getResourceLimitsProperties() throws Exception
Exception - if an unexpected error occurredpublic static String[] identify(List<String> arguments) throws Exception
identify command in ImageMagick.arguments - the command arguments being passed to identify
identify callException - if an unexpected error occurred while executing commandpublic static boolean isEnabled()
true if ImageMagick is enabled.true if ImageMagick is enabled; false
otherwisepublic static void reset()
public void setImageMagick(ImageMagick imageMagick)