public class GifRootPackage extends ImageRootPackage implements IXmp
Represents the root package intended to work with metadata in a GIF image.
Learn more
This code snippet shows how to detect the version of a loaded GIF image and extract some additional file format information.
try (Metadata metadata = new Metadata(Constants.InputGif)) { GifRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getGifImageType().getFileFormat()); System.out.println(root.getGifImageType().getVersion()); System.out.println(root.getGifImageType().getByteOrder()); System.out.println(root.getGifImageType().getMimeType()); System.out.println(root.getGifImageType().getExtension()); System.out.println(root.getGifImageType().getWidth()); System.out.println(root.getGifImageType().getHeight()); }
Modifier and Type | Method and Description |
---|---|
GifImageTypePackage |
getGifImageType()
Gets the file type metadata package.
|
XmpPacketWrapper |
getXmpPackage()
Gets the XMP metadata package.
|
boolean |
isXmpSupported()
Gets a value indicating whether the XMP metadata is supported for this image.
|
void |
setXmpPackage(XmpPacketWrapper value)
Sets the XMP metadata package.
|
getImageType
getFileType, sanitize
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final GifImageTypePackage getGifImageType()
Gets the file type metadata package.
public final XmpPacketWrapper getXmpPackage()
Gets the XMP metadata package.
getXmpPackage
in interface IXmp
Learn more
public final void setXmpPackage(XmpPacketWrapper value)
Sets the XMP metadata package.
setXmpPackage
in interface IXmp
value
- The XMP metadata package.
Learn more
public final boolean isXmpSupported()
Gets a value indicating whether the XMP metadata is supported for this image.