Class ImageCropperAndResizer
java.lang.Object
org.nuxeo.ecm.platform.picture.magick.utils.ImageCropperAndResizer
Unit command to crop and resize an picture.
- Author:
- tiry
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
Field Details
-
DEFAULT_MAP_COMPONENTS
- See Also:
-
-
Constructor Details
-
ImageCropperAndResizer
public ImageCropperAndResizer()
-
-
Method Details
-
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.
-