public class ImageUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
ImageUtil() |
Modifier and Type | Method and Description |
---|---|
static InputStream |
resizeImage(InputStream imageInputStream,
String mimeType,
int maxWidth,
int maxHeight)
Resizes the given image (passed as
InputStream . |
public static InputStream resizeImage(InputStream imageInputStream, String mimeType, int maxWidth, int maxHeight)
InputStream
.
If the image is smaller then the given maximum width or height, the image
will be proportionally resized.Copyright © 2016 Alfresco. All rights reserved.