For all supported image formats the GroupDocs.Metadata API allows Extracting common image properties such as width and height, MIME type, byte order, etc. Please see the code snippet below for more information on the feature.
Load an image Extract the root metadata package Use the getImageType method to obtain file format information advanced_usage.managing_metadata_for_specific_formats.image.ImageReadFileFormatProperties
try (Metadata metadata = new Metadata(Constants.InputPng)) { ImageRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getImageType().getFileFormat()); System.out.println(root.getImageType().getByteOrder()); System.out.println(root.getImageType().getMimeType()); System.out.println(root.getImageType().getExtension()); System.out.println(root.getImageType().getWidth()); System.out.println(root.getImageType().getHeight()); } More resources GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:...Images / Extracting common image information Extracting common...GroupDocs.Metadata API allows extracting common image properties such...
Using the GroupDocs.Metadata search engine you can Extract desired metadata properties from files of different types. You don’t need to worry about the exact file format and metadata standards it can deal with. The same code will work for all supported formats in the same way. Most commonly used metadata properties are marked with tags that allow searching them across all supported files in various metadata packages. All tags defined in GroupDocs....Advanced Usage / Extracting metadata Extracting metadata Leave...Metadata search engine you can extract desired metadata properties...
An interface is used to receive the information about errors, warnings and events which occur while data Extraction....events which occur while data extraction. interface has the following...that occurred during data extraction. Logs a warning that occurred...
The following example demonstrates how to load a file from a local disk.
advanced_usage.loading_files.LoadFromLocalDisk
// Constants.InputOne is an absolute or relative path to your document. Ex: @"C:\Docs\source.one" try (Metadata metadata = new Metadata(Constants.InputOne)) { // Extract, edit or remove metadata here } More resources GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:
GroupDocs.Metadata for .NET examples
GroupDocs.Metadata for Java examples... InputOne )) { // Extract, edit or remove metadata here...
For all supported image formats the GroupDocs.Metadata API allows Extracting common image properties such as width and height, MIME type, byte order, etc. Please see the code snippet below for more information on the feature.
Load an image Extract the root metadata package Use the FileType property to obtain file format information AdvancedUsage.ManagingMetadataForSpecificFormats.Image.ImageReadFileFormatProperties
using (Metadata metadata = new Metadata(Constants.InputPng)) { var root = metadata.GetRootPackage(); Console.WriteLine(root.FileType.FileFormat); 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); } More resources GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:...Images / Extracting Common Image Information Extracting Common...GroupDocs.Metadata API allows extracting common image properties such...
This article explains how to detect the document file type and calculate the number of pages when converting a file with GroupDocs.Conversion for Java....provides a consistent way to extract metadata from source documents...additional metadata can be extracted. Below are examples of how...
We offer multiple solutions on how you can run GroupDocs.Editor examples, by building your own or using our back-end or front-end Java examples out-of-the-box....file, extract the folders on your local disk. The extracted files...