Class AvifDecoder

java.lang.Object
com.idrsolutions.image.JDeliImage
com.idrsolutions.image.avif.AvifDecoder
All Implemented Interfaces:
com.idrsolutions.image.Decoder

public class AvifDecoder 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[] data)
     
    read(File imageFile)
     
    readDimension(byte[] data)
    Decodes and returns the width and height of avif image
    Decodes and returns the width and height of avif image
    readExif(byte[] data)
    Decodes and returns the Exif data as IFD format if there is an IFDdata otherwise returns null
    readExif(File file)
    Decodes and returns the Exif data as IFD format if there is an IFDdata otherwise returns null

    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

    • AvifDecoder

      public AvifDecoder()
  • Method Details

    • read

      public BufferedImage read(byte[] data) throws Exception
      Specified by:
      read in interface com.idrsolutions.image.Decoder
      Parameters:
      data - source image to read
      Returns:
      image contained in raw data
      Throws:
      Exception - if problem reading image
    • read

      public BufferedImage read(File imageFile) throws Exception
      Specified by:
      read in interface com.idrsolutions.image.Decoder
      Parameters:
      file - source image to read
      Returns:
      image contained in raw data
      Throws:
      Exception - if problem reading image
    • readDimension

      public Rectangle readDimension(File file) throws Exception
      Decodes and returns the width and height of avif image
      Specified by:
      readDimension in interface com.idrsolutions.image.Decoder
      Parameters:
      file - image image contained in raw data if present
      Returns:
      width and height of image
      Throws:
      Exception - if problem reading image
    • readDimension

      public Rectangle readDimension(byte[] data) throws Exception
      Decodes and returns the width and height of avif image
      Specified by:
      readDimension in interface com.idrsolutions.image.Decoder
      Parameters:
      data - image image contained in raw data if present
      Returns:
      Rectangle width and height of image
      Throws:
      Exception - if problem reading image
    • readExif

      public Exif readExif(File file) throws Exception
      Decodes and returns the Exif data as IFD format if there is an IFDdata otherwise returns null
      Parameters:
      file - image image contained in raw data if present
      Returns:
      BufferedImage thumbnail image
      Throws:
      Exception - if problem reading image
    • readExif

      public Exif readExif(byte[] data) throws Exception
      Decodes and returns the Exif data as IFD format if there is an IFDdata otherwise returns null
      Parameters:
      data - image image contained in raw data if present
      Returns:
      BufferedImage thumbnail image
      Throws:
      Exception - if problem reading image