Class ImageCropperAndResizer
- java.lang.Object
-
- org.nuxeo.ecm.platform.picture.magick.MagickExecutor
-
- org.nuxeo.ecm.platform.picture.magick.utils.ImageCropperAndResizer
-
public class ImageCropperAndResizer extends MagickExecutor
Unit command to crop and resize an picture.- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_MAP_COMPONENTS
-
Constructor Summary
Constructors Constructor Description ImageCropperAndResizer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
cropAndResize(String inputFilePath, String outputFilePath, int tileWidth, int tileHeight, int offsetX, int offsetY, int targetWidth, int targetHeight)
static void
cropAndResize(String inputFilePath, String outputFilePath, int tileWidth, int tileHeight, int offsetX, int offsetY, int targetWidth, int targetHeight, String mapComponents)
-
Methods inherited from class org.nuxeo.ecm.platform.picture.magick.MagickExecutor
execCommand
-
-
-
-
Field Detail
-
DEFAULT_MAP_COMPONENTS
public static final String DEFAULT_MAP_COMPONENTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
cropAndResize
public static void cropAndResize(String inputFilePath, String outputFilePath, int tileWidth, int tileHeight, int offsetX, int offsetY, int targetWidth, int targetHeight) throws CommandNotAvailable, CommandException
- Throws:
CommandNotAvailable
CommandException
-
cropAndResize
public static void cropAndResize(String inputFilePath, String outputFilePath, int tileWidth, int tileHeight, int offsetX, int offsetY, int targetWidth, int targetHeight, String mapComponents) throws CommandNotAvailable, CommandException
- Throws:
CommandNotAvailable
CommandException
- Since:
- 5.9.5.
-
-