public interface ResizeImageService
Modifier and Type | Method and Description |
---|---|
InputStream |
resizeImage(String imageName,
InputStream is,
int requestWidth,
int requestHeight,
boolean keepAspectRatio)
Resizes an image to given dimensions.
|
InputStream |
resizeImageByHeight(String imageName,
InputStream is,
int requestHeight)
Resizes an image to a given height.
|
InputStream |
resizeImageByWidth(String imageName,
InputStream is,
int requestWidth)
Resizes an image to a given width.
|
InputStream resizeImage(String imageName, InputStream is, int requestWidth, int requestHeight, boolean keepAspectRatio) throws org.exoplatform.forum.common.image.FileNotSupportedException
imageName
- Name of the resized image.is
- The input image.requestWidth
- New width of the image.requestHeight
- New height of the image.keepAspectRatio
- The image's aspect ratio is kept or not.org.exoplatform.forum.common.image.FileNotSupportedException
InputStream resizeImageByWidth(String imageName, InputStream is, int requestWidth) throws org.exoplatform.forum.common.image.FileNotSupportedException
imageName
- Name of the image to be resized.is
- The input image.requestWidth
- New width of the image.org.exoplatform.forum.common.image.FileNotSupportedException
InputStream resizeImageByHeight(String imageName, InputStream is, int requestHeight) throws org.exoplatform.forum.common.image.FileNotSupportedException
imageName
- Name of the image to be resized.is
- The input image.requestHeight
- New height of the image.org.exoplatform.forum.common.image.FileNotSupportedException
Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.