Package com.idrsolutions.image.heic
Class HeicDecoder
java.lang.Object
com.idrsolutions.image.JDeliImage
com.idrsolutions.image.heic.HeicDecoder
- All Implemented Interfaces:
com.idrsolutions.image.Decoder
public class HeicDecoder
extends com.idrsolutions.image.JDeliImage
implements com.idrsolutions.image.Decoder
-
Field Summary
Fields inherited from class com.idrsolutions.image.JDeliImage
bb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(byte[] data) readDimension
(byte[] data) Decodes and returns the width and height of heic imagereadDimension
(File file) Decodes and returns the width and height of heic imagereadEmbeddedThumbnail
(byte[] data) Decodes and returns the thumbnail heic image as BufferedImage if there is an thumbnail otherwise returns nullreadEmbeddedThumbnail
(File file) Decodes and returns the thumbnail heic image as BufferedImage if there is an thumbnail otherwise returns nullreadExif
(byte[] data) Decodes and returns the Exif data as IFD format if there is an IFDdata otherwise returns nullDecodes and returns the Exif data as IFD format if there is an IFDdata otherwise returns nullvoid
readImageSpecificMetaData
(byte[] bytes, Metadata metadata) Read Heic specific metadata such as IFDvoid
readImageSpecificMetaData
(File file, Metadata metadata) Read Heic specific metadata such as IFDMethods 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, readImageAt, readImageAt, setMetadata
-
Constructor Details
-
HeicDecoder
public HeicDecoder()
-
-
Method Details
-
read
- Specified by:
read
in interfacecom.idrsolutions.image.Decoder
- Parameters:
data
- source image to read- Returns:
- image contained in raw data
- Throws:
Exception
- if problem reading image
-
read
- Specified by:
read
in interfacecom.idrsolutions.image.Decoder
- Parameters:
file
- source image to read- Returns:
- image contained in raw data
- Throws:
Exception
- if problem reading image
-
readEmbeddedThumbnail
Decodes and returns the thumbnail heic image as BufferedImage if there is an thumbnail otherwise returns null- Specified by:
readEmbeddedThumbnail
in interfacecom.idrsolutions.image.Decoder
- Parameters:
file
- heic file- Returns:
- BufferedImage thumbnail image
- Throws:
Exception
- if problem reading image
-
readEmbeddedThumbnail
Decodes and returns the thumbnail heic image as BufferedImage if there is an thumbnail otherwise returns null- Specified by:
readEmbeddedThumbnail
in interfacecom.idrsolutions.image.Decoder
- Parameters:
data
- image image contained in raw data if present- Returns:
- BufferedImage thumbnail image
- Throws:
Exception
- if problem reading image
-
readExif
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
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
-
readDimension
Decodes and returns the width and height of heic image- Specified by:
readDimension
in interfacecom.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
Decodes and returns the width and height of heic image- Specified by:
readDimension
in interfacecom.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
-
readImageSpecificMetaData
Read Heic specific metadata such as IFD- Specified by:
readImageSpecificMetaData
in interfacecom.idrsolutions.image.Decoder
- Parameters:
file
- file to read frommetadata
- image metadata object to hold all metadata- Throws:
Exception
-
readImageSpecificMetaData
Read Heic specific metadata such as IFD- Specified by:
readImageSpecificMetaData
in interfacecom.idrsolutions.image.Decoder
- Parameters:
bytes
- byte array to read data frommetadata
- image metadata object to hold all metadata- Throws:
Exception
-