com.groupdocs.metadata.core

Interfaces

Classes

Enums

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.

    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 Detail

      • getGifImageType

        public final GifImageTypePackage getGifImageType()

        Gets the file type metadata package.

        Returns:
        The file type 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.