Class BasicImageMagickStrategy
- java.lang.Object
-
- de.hybris.platform.mediaconversion.imagemagick.BasicImageMagickStrategy
-
- Direct Known Subclasses:
DefaultImageMagickService,ImageMagickMediaConversionStrategy
public class BasicImageMagickStrategy extends java.lang.ObjectClass to share common functionality to Services and Strategies using ImageMagick.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEMBEDDED_CONFIG_DIRDeprecated.: since 6.1 ImageMagick in no longer embedded and has to be installed manually.static java.lang.StringIMAGEMAGICK_CONFIGURATION_DIRECTORYConfiguration key where the ImageMagick configuration directory is located.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetConfigurationDirectory()Accesses the ImageMagick configuration directory.ConfigurationServicegetConfigurationService()java.io.FilegetTmpDir()Accesses the temporary directory to use.voidsetConfigurationDirectory(java.io.File configurationDirectory)Sets the image magick configuration directory to use.voidsetConfigurationService(ConfigurationService configurationService)voidsetTmpDir(java.io.File tmpDir)Sets the temporary directory to use.
-
-
-
Field Detail
-
IMAGEMAGICK_CONFIGURATION_DIRECTORY
public static final java.lang.String IMAGEMAGICK_CONFIGURATION_DIRECTORY
Configuration key where the ImageMagick configuration directory is located.
-
EMBEDDED_CONFIG_DIR
@Deprecated public static final java.lang.String EMBEDDED_CONFIG_DIR
Deprecated.: since 6.1 ImageMagick in no longer embedded and has to be installed manually.The embedded imagemagick configuration directory as shipped with this extension. This value will be used as default.
-
-
Method Detail
-
getTmpDir
public java.io.File getTmpDir()
Accesses the temporary directory to use. The returned directory will be the ${HYBRIS_TEMP_DIR}/convert if not configured differently (through spring setup). The directory will be created if it does not exist.- Returns:
- the temporary directory to use.
-
setTmpDir
public void setTmpDir(java.io.File tmpDir)
Sets the temporary directory to use.- Parameters:
tmpDir- the temporary directory.- See Also:
getTmpDir()
-
getConfigurationDirectory
public java.io.File getConfigurationDirectory() throws java.io.IOExceptionAccesses the ImageMagick configuration directory. If not configured otherwise the embedded ImageMagick configuration directory will be used.- Returns:
- the image magick configuration directory
- Throws:
java.io.IOException- See Also:
EMBEDDED_CONFIG_DIR, Customize ImageMagick With Resources
-
setConfigurationDirectory
public void setConfigurationDirectory(java.io.File configurationDirectory)
Sets the image magick configuration directory to use.- Parameters:
configurationDirectory- the configuration directory to use.
-
getConfigurationService
public ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
-