GifRootPackage
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()); }
Methods
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. |
getGifImageType()
public final GifImageTypePackage getGifImageType()
Gets the file type metadata package.
Returns: GifImageTypePackage - The file type metadata package.
getXmpPackage()
public final XmpPacketWrapper getXmpPackage()
Gets the XMP metadata package.
Returns: XmpPacketWrapper - The XMP metadata package.
Learn more
setXmpPackage(XmpPacketWrapper value)
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 |
isXmpSupported()
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.