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:...resources GitHub examples You may easily run the code above and...
Learn this article and check how to improve conversion speed and performance when convert document with GroupDocs.Conversion for .NET API....some cases document conversion may be a time-consuming operation...
This article explains the ability of the GroupDocs.Redaction API to get the general document information, which includes FileType, PageCount and FileSize.... GitHub examples You may easily run the code above and...
This article explains the ability of the GroupDocs.Redaction API to get the general document information, which includes FileType, PageCount and FileSize.... GitHub examples You may easily run the code above and...
Programmatically add and remove annotations from Word DOC/DOCX files in C#. Add arrow, rectangle, ellipse, watermark annotations using .NET Annotation API.... You may also use the following command...supported annotation types, you may learn about each annotation individually...
This topic describes how to use the GroupDocs.Viewer Java API to convert XML documents to HTML (with and without pagination), PDF documents, PNG, and JPEG raster formats....markup in original document: it may be divided by line breaks onto...document may be stored in a single line of text; it may have indents...
This topic describes how to use the GroupDocs.Viewer .NET API (C#) to convert XML documents to HTML (with and without pagination), PDF documents, PNG, and JPEG raster formats....documents with no exceptions may be threatened (interpreted) as...markup in original document: it may be divided by line breaks onto...
Perform image comparison using C# within .NET applications. Compare JPG, PNG, BMP, GIF, DICOM, DCM, or DjVu images using image comparing .NET API.... You may also contact the Free Support...
By following this tutorial, you will acquire the skills to convert JPG to DOCX using Java. We will provide you the code to seamlessly export JPG to DOCX using Java.... The conversion may be essential for enhancing workflow...
The purpose of this topic is to show you how to remove annotation reply from PDF using Java along with code example to delete reply annotation using Java from PDF.... However, sometimes you may want to delete a reply from an...