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.
|
getImageTypecopyTo, getFileType, isLicensed, sanitizeaddProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, setProperties, updatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic final GifImageTypePackage getGifImageType()
Gets the file type metadata package.
public final XmpPacketWrapper getXmpPackage()
Gets the XMP metadata package.
getXmpPackage in interface IXmpLearn more
public final boolean isXmpSupported()
Gets a value indicating whether the XMP metadata is supported for this image.
public final void setXmpPackage(XmpPacketWrapper value)
Sets the XMP metadata package.
setXmpPackage in interface IXmpvalue - The XMP metadata package.
Learn more
Copyright © 2025. All rights reserved.