Interface ImageResizeService

All Known Implementing Classes:
ImageResizeServiceImpl

public interface ImageResizeService
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    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 resized
      width - Target resized image width
      height - Target resized image height
      fitExact - 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