Class ImageResizer
java.lang.Object
org.nuxeo.ecm.platform.picture.magick.utils.ImageResizer
Unit command to extract a simplified view of a JPEG file using ImageMagick = extract the needed picture information
to reach the target definition level
- Author:
- tiry
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
MAX_JEPG_DIMENSION
public static final int MAX_JEPG_DIMENSION- Since:
- 10.3
- See Also:
-
-
Constructor Details
-
ImageResizer
public ImageResizer()
-
-
Method Details
-
resize
public static ImageInfo resize(String inputFile, String outputFile, int targetWidth, int targetHeight, int targetDepth) throws CommandNotAvailable, CommandException - Throws:
CommandNotAvailable
CommandException
-
scaleToMax
Adapts width and height to a max conserving ratio.- Returns:
- new Point to scale or the original one if none is > max.
- Since:
- 10.3
-