public class ImageResizer extends MagickExecutor
Modifier and Type | Field and Description |
---|---|
static int |
MAX_JEPG_DIMENSION |
Constructor and Description |
---|
ImageResizer() |
Modifier and Type | Method and Description |
---|---|
static ImageInfo |
resize(String inputFile,
String outputFile,
int targetWidth,
int targetHeight,
int targetDepth) |
static Point |
scaleToMax(int width,
int height,
int max)
Adapts width and height to a max conserving ratio.
|
execCommand
public static final int MAX_JEPG_DIMENSION
public ImageResizer()
public static ImageInfo resize(String inputFile, String outputFile, int targetWidth, int targetHeight, int targetDepth) throws CommandNotAvailable, CommandException
CommandNotAvailable
CommandException
public static Point scaleToMax(int width, int height, int max)
Copyright © 2019 Nuxeo. All rights reserved.