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:...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:
The page describes how to add button component to a document using GroupDocs.Annotation for .NET....The page describes how to add button component to a document using GroupDocs.Annotation for .NET.
The page describes how to save only annotated pages when using GroupDocs.Annotation for Java API....The page describes how to save only annotated pages when using GroupDocs.Annotation for Java API.
This article gives the knowledge about numeric range search which allows you to search in documents any integer numbers in the range from 0 to 9223372036854775807 (Int64.MaxValue)....This article gives the knowledge about numeric range search which allows you to search in documents any integer numbers in the range from 0 to 9223372036854775807 (Int64.MaxValue).
This article demonstrates how to convert document presented As stream using GroupDocs.Conversion for Java API....This article demonstrates how to convert document presented as stream using GroupDocs.Conversion for Java API.
This article explains that how to extract Markdown formatted text from document page in Java....This article explains that how to extract Markdown formatted text from document page in Java.
This article shows that how synonym search allows you to find not only the words specified in the search query, but also the synonyms, words that means the same....This article shows that how synonym search allows you to find not only the words specified in the search query, but also the synonyms, words that means the same.
Following this guide you will learn how to set shape color independently of font color and modify appearance of detected changes when use GroupDocs.Comparison for .NET....Following this guide you will learn how to set shape color independently of font color and modify appearance of detected changes when use GroupDocs.Comparison for .NET.