Interface IImageReader


public interface IImageReader
Interface to read am image within the server side image processing (which is e.g used when image sizes are calculated on server side).

The implementation may return null if it cannot read the image on its own - then the default way of reading the image is used. The implementation class should check the image name, if it's applicable for own read-processing and then either return null (if not applicable) or return the image bytes.

The class is registered in eclntjsfserver/config/system.xml.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
     
  • Method Details

    • readImage

      byte[] readImage(String image)
      Parameters:
      image - The path to the image: either a path like "/xxx/yyy/abc.png" or a URL like "http://...."
      Returns:
      If null is returned then the default way of reading the image is used.