Liferay 6.2-ce-ga5

com.liferay.portal.kernel.image
Class ImageMagickUtil

java.lang.Object
  extended by com.liferay.portal.kernel.image.ImageMagickUtil

public class ImageMagickUtil
extends Object

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

ImageMagickUtil

public ImageMagickUtil()
Method Detail

convert

public static Future<?> convert(List<String> arguments)
                         throws Exception
Executes the convert command in ImageMagick.

Parameters:
arguments - the command arguments being passed to convert
Returns:
the converted command arguments
Throws:
Exception - if an unexpected error occurred while executing command
See Also:
Convert documentation

destroy

public static void destroy()

getGlobalSearchPath

public static String getGlobalSearchPath()
                                  throws Exception
Returns the global search path configured for ImageMagick.

Returns:
the global search path
Throws:
Exception - if an unexpected error occurred

getImageMagick

public static ImageMagick getImageMagick()

getResourceLimitsProperties

public static Properties getResourceLimitsProperties()
                                              throws Exception
Returns the cache and resource usage limits configured for ImageMagick.

Returns:
the cache and resource usage limits
Throws:
Exception - if an unexpected error occurred

identify

public static String[] identify(List<String> arguments)
                         throws Exception
Executes the identify command in ImageMagick.

Parameters:
arguments - the command arguments being passed to identify
Returns:
the results of the identify call
Throws:
Exception - if an unexpected error occurred while executing command
See Also:
Identify documentation

isEnabled

public static boolean isEnabled()
Returns true if ImageMagick is enabled.

Returns:
true if ImageMagick is enabled; false otherwise

reset

public static void reset()
Resets the global search path and resource limits for ImageMagick.


setImageMagick

public void setImageMagick(ImageMagick imageMagick)

Liferay 6.2-ce-ga5