com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Class GifRootPackage

  • All Implemented Interfaces:
    IXmp, Iterable<MetadataProperty>


    public class GifRootPackage
    extends ImageRootPackage
    implements IXmp

    Represents the root package intended to work with metadata in a GIF image.

    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 Detail

      • getGifImageType

        public final GifImageTypePackage getGifImageType()

        Gets the file type metadata package.

        Returns:
        The file type metadata package.
      • getXmpPackage

        public final XmpPacketWrapper getXmpPackage()

        Gets the XMP metadata package.

        Specified by:
        getXmpPackage in interface IXmp
        Returns:
        The XMP metadata package.
      • setXmpPackage

        public final void setXmpPackage(XmpPacketWrapper value)

        Sets the XMP metadata package.

        Specified by:
        setXmpPackage in interface IXmp
        Parameters:
        value - The XMP metadata package.
      • isXmpSupported

        public final boolean isXmpSupported()

        Gets a value indicating whether the XMP metadata is supported for this image.

        Returns:
        True if the XMP metadata is supported for this image; otherwise, false.