Interface ImageResizeService
- All Known Implementing Classes:
ImageResizeServiceImpl
public interface ImageResizeService
-
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
-
Method Details
-
scaleImage
byte[] scaleImage(byte[] image, int width, int height, boolean fitExact, boolean ultraQuality) throws Exception Create a scaled image by resizing an initial given image- 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
-