Class ImageResizeServiceImpl
java.lang.Object
org.exoplatform.services.thumbnail.ImageResizeServiceImpl
- All Implemented Interfaces:
ImageResizeService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]scaleImage(byte[] image, int width, int height, boolean fitExact, boolean ultraQuality) Create a scaled image by resizing an initial given image
-
Constructor Details
-
ImageResizeServiceImpl
public ImageResizeServiceImpl()
-
-
Method Details
-
scaleImage
public byte[] scaleImage(byte[] image, int width, int height, boolean fitExact, boolean ultraQuality) throws Exception Description copied from interface:ImageResizeServiceCreate a scaled image by resizing an initial given image- Specified by:
scaleImagein interfaceImageResizeService- Parameters:
image- Target image content to be resizedwidth- Target resized image widthheight- Target resized image heightfitExact- Fit resized image to the exact given with and height (true) or automatic fit (false)ultraQuality- return an ultra quality resized image (may take more execution time)- Returns:
- byte array of image content
- Throws:
Exception
-