Class BasicImageMagickStrategy
java.lang.Object
de.hybris.platform.mediaconversion.imagemagick.BasicImageMagickStrategy
- Direct Known Subclasses:
DefaultImageMagickService,ImageMagickMediaConversionStrategy
Class to share common functionality to Services and Strategies using
ImageMagick.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.: since 6.1 ImageMagick in no longer embedded and has to be installed manually.static final StringConfiguration key where the ImageMagick configuration directory is located. -
Method Summary
Modifier and TypeMethodDescriptionAccesses the ImageMagick configuration directory.Accesses the temporary directory to use.voidsetConfigurationDirectory(File configurationDirectory) Sets the image magick configuration directory to use.voidsetConfigurationService(ConfigurationService configurationService) voidSets the temporary directory to use.
-
Field Details
-
IMAGEMAGICK_CONFIGURATION_DIRECTORY
Configuration key where the ImageMagick configuration directory is located. -
EMBEDDED_CONFIG_DIR
Deprecated, for removal: This API element is subject to removal in a future version.: 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 Details
-
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
Sets the temporary directory to use.- Parameters:
tmpDir- the temporary directory.- See Also:
-
getConfigurationDirectory
Accesses the ImageMagick configuration directory. If not configured otherwise the embedded ImageMagick configuration directory will be used.- Returns:
- the image magick configuration directory
- Throws:
IOException- See Also:
-
setConfigurationDirectory
Sets the image magick configuration directory to use.- Parameters:
configurationDirectory- the configuration directory to use.
-
getConfigurationService
-
setConfigurationService
-