|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.kernel.image.ImageMagickUtil
public class ImageMagickUtil
The ImageMagick utility class.
Constructor Summary | |
---|---|
ImageMagickUtil()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageMagickUtil()
Method Detail |
---|
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
call
Exception
- 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)
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |