GifRootPackage
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.RootMetadataPackage, com.groupdocs.metadata.core.ImageRootPackage
All Implemented Interfaces: com.groupdocs.metadata.core.IXmp
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()); }
| Method | Description |
|---|---|
| getGifImageType() | Gets the file type metadata package. |
| getXmpPackage() | Gets the XMP metadata package. |
| setXmpPackage(XmpPacketWrapper value) | Sets the XMP metadata package. |
| isXmpSupported() | Gets a value indicating whether the XMP metadata is supported for this image. |
public final GifImageTypePackage getGifImageType()
Gets the file type metadata package.
Returns: GifImageTypePackage - The file type metadata package.
public final XmpPacketWrapper getXmpPackage()
Gets the XMP metadata package.
Returns: XmpPacketWrapper - The XMP metadata package.
Learn more
public final void setXmpPackage(XmpPacketWrapper value)
Sets the XMP metadata package.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | XmpPacketWrapper | The XMP metadata package. |
Learn more
Working with XMP metadata: https://docs.groupdocs.com/display/metadatajava/Working+with+XMP+metadata |
public final boolean isXmpSupported()
Gets a value indicating whether the XMP metadata is supported for this image.
Returns: boolean - True if the XMP metadata is supported for this image; otherwise, false.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.