Reading PNG Metadata properties The GroupDocs.Metadata API supports extracting format-specific information from PNG Images.
The following are the steps to read the native PNG Metadata.
Load a PNG Image Get the root Metadata package Extract the native Metadata package using PngRootPackage.getPngPackage Read the PNG Metadata properties advanced_usage.managing_Metadata_for_specific_formats.Image.png.PngReadTextChunks
try (MetadataMetadata = new Metadata(Constants.InputPng)) { PngRootPackage root = Metadata.getRootPackageGeneric(); for (PngTextChunk chunk : root.getPngPackage().getTextChunks()) { System.out.println(chunk.getKeyword()); System.out.println(chunk.getText()); if (chunk instanceof PngCompressedTextChunk) { PngCompressedTextChunk compressedChunk = (PngCompressedTextChunk) chunk; System....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
Detecting the GIF version The following sample of code will help you to detect the version of a loaded GIF Image and extract some additional file format information.
Load a GIF Image Extract the root Metadata package Use the FileType property to obtain file format information AdvancedUsage.ManagingMetadataForSpecificFormats.Image.Gif.GifReadFileFormatProperties
using (MetadataMetadata = new Metadata(Constants.InputGif)) { var root = Metadata.GetRootPackage(); Console.WriteLine(root.FileType.FileFormat); Console.WriteLine(root.FileType.Version); Console.WriteLine(root.FileType.ByteOrder); Console.WriteLine(root.FileType.MimeType); Console.WriteLine(root.FileType.Extension); Console.WriteLine(root.FileType.Width); Console.WriteLine(root.FileType.Height); } Working with XMP Metadata GroupDocs....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
Sometimes you just need to remove all Metadata properties without applying any filters. The best way to do this is the sanitize method of GroupDocs.Metadata for Python via .NET....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
This article shows how to access XMP Metadata in a file of any supported format....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
Reading JPEG2000 comments The GroupDocs.Metadata API supports extracting format-specific information from JPEG2000 Images.
The following are the steps to read the JPEG2000 comments (pieces of Metadata represented as strings with the length up to 64 kbytes).
Load a JPEG2000 Image Get the root Metadata package Extract the native Metadata package using the Jpeg2000RootPackage.getJpeg2000Package method Read the JPEG2000 comments advanced_usage.managing_Metadata_for_specific_formats.Image.jpeg2000.Jpeg2000ReadComments
try (MetadataMetadata = new Metadata(Constants.InputJpeg2000)) { Jpeg2000RootPackage root = Metadata....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
Not all Metadata properties extracted from a file are marked with tags. Some file formats and Metadata standards allow adding fully custom properties that can’t be properly tagged by the library since their purpose is not clearly defined in the appropriate format/standard specification. In such cases, you can use the name of the property to locate and remove it. The following example demonstrates some advanced usage scenarios of the GroupDocs.Metadata search engine allowing to remove Metadata properties....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
The Example in this article demonstrates that how to update Metadata properties using a combination of criteria...Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
The easiest way to remove Metadata properties from a file is to use corresponding tags that allow you to locate the desired properties across all Metadata packages....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
Reading ASF format-specific properties The GroupDocs.Metadata API supports extracting format-specific information from ASF files.
The following are the steps to read native ASF Metadata.
Load an ASF video Get the root Metadata package Extract the native Metadata package using the AsfRootPackage.getAsfPackage method Read the ASF Metadata properties advanced_usage.managing_Metadata_for_specific_formats.video.asf.AsfReadNativeMetadataProperties
try (MetadataMetadata = new Metadata(Constants.InputAsf)) { AsfRootPackage root = Metadata.getRootPackageGeneric(); AsfPackage asfPackage = root.getAsfPackage(); // Display basic properties System.out.println(String.format("Creation date: %s", asfPackage....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...