Class JpegXLDecoder

java.lang.Object
com.idrsolutions.image.JDeliImage
com.idrsolutions.image.jpegxl.JpegXLDecoder
All Implemented Interfaces:
com.idrsolutions.image.Decoder

public class JpegXLDecoder extends com.idrsolutions.image.JDeliImage implements com.idrsolutions.image.Decoder
  • Field Summary

    Fields inherited from class com.idrsolutions.image.JDeliImage

    bb
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    read(byte[] jpegxlRawData)
    Make NO assumptions about BufferedImage type returned as it may change
    read(File file)
    Make NO assumptions about BufferedImage type returned as it may change
    readDimension(byte[] data)
     
    readDimension(File imageFile)
     

    Methods inherited from class com.idrsolutions.image.JDeliImage

    optimiseImage

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.idrsolutions.image.Decoder

    getImageCount, getImageCount, readEmbeddedThumbnail, readEmbeddedThumbnail, readImageAt, readImageAt, readImageSpecificMetaData, readImageSpecificMetaData, setMetadata
  • Constructor Details

    • JpegXLDecoder

      public JpegXLDecoder()
  • Method Details

    • read

      public BufferedImage read(byte[] jpegxlRawData) throws Exception
      Make NO assumptions about BufferedImage type returned as it may change

      Decodes and returns the JPEG XL image as a BufferedImage from bytes

      Specified by:
      read in interface com.idrsolutions.image.Decoder
      Parameters:
      jpegxlRawData - byte[] containing the JPEG XL data to be decoded
      Returns:
      BufferedImage The decoded image
      Throws:
      Exception - if an error occurs in reading image
    • read

      public BufferedImage read(File file) throws Exception
      Make NO assumptions about BufferedImage type returned as it may change

      Decodes and returns the JPEG XL image as a BufferedImage

      Specified by:
      read in interface com.idrsolutions.image.Decoder
      Parameters:
      file - file containing the JPEG XL data to be decoded
      Returns:
      BufferedImage The decoded image
      Throws:
      Exception - if an error occurs in reading image
    • readDimension

      public Rectangle readDimension(byte[] data) throws Exception
      Specified by:
      readDimension in interface com.idrsolutions.image.Decoder
      Throws:
      Exception
    • readDimension

      public Rectangle readDimension(File imageFile) throws Exception
      Specified by:
      readDimension in interface com.idrsolutions.image.Decoder
      Throws:
      Exception