Class ImageMagickMediaConversionStrategy

java.lang.Object
de.hybris.platform.mediaconversion.imagemagick.BasicImageMagickStrategy
de.hybris.platform.mediaconversion.imagemagick.ImageMagickMediaConversionStrategy
All Implemented Interfaces:
MediaConversionStrategy

public class ImageMagickMediaConversionStrategy extends BasicImageMagickStrategy implements MediaConversionStrategy
MediaConversionStrategy backed by ImageMagick to do various image conversions.

This MediaConversionStrategy takes the conversion string (ConversionMediaFormatModel.getConversion()) and turns it to a image magick convert command line. The convert executable and input file (the original media's data) will be prepended to the command. The output file (which is a temporary file), will be appended to the command array. Input file and output file will not be included in the command array if you specify a {input} or {output} token in your conversion string. In the latter case these tokens will be replaced with the absolute file names of the input or output respectively.

Additionally if there are ConversionMediaFormatModel.getMediaAddOns() present, occurrences of the "{addOn#X}" (where X denotes the position within the media add on list (starting with 1!)) will e replaced by the absolute path names of these medias.

See Also: