Class ImageResizeServiceImpl

java.lang.Object
org.exoplatform.services.thumbnail.ImageResizeServiceImpl
All Implemented Interfaces:
ImageResizeService

public class ImageResizeServiceImpl extends Object implements ImageResizeService
  • 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: ImageResizeService
      Create a scaled image by resizing an initial given image
      Specified by:
      scaleImage in interface ImageResizeService
      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