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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcropAndResize(String inputFilePath, String outputFilePath, int tileWidth, int tileHeight, int offsetX, int offsetY, int targetWidth, int targetHeight) static voidcropAndResize(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:
CommandNotAvailableCommandException
-
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:
CommandNotAvailableCommandException- Since:
- 5.9.5.
-