Extract JPEG Metadata in Java

Work with GroupDocs.Metadata for Java API to extract metadata information from documents, images and a wide range of multimedia file formats.


Download Free Trial

About GroupDocs.Metadata for Java API

GroupDocs.Metadata for Java is an advanced metadata management solution, allowing developers to easily view, add, edit, delete, search, compare, replace and export metadata information from images and document formats without using any external software. Extract metadata details from Microsoft Office Word, Excel, PowerPoint, Outlook, OneNote, Visio, Project, PDF, AutoCAD, Archive, Audio and Video file formats.

Steps for JPEG Metadata Extraction in Java

GroupDocs.Metadata makes it easy for Java developers to get metadata information from JPEG files from within their applications by implementing a few easy steps.

  • Load the JPEG file to be searched for metadata properties.
  • Make up a predicate to examine all extracted metadata properties.
  • Pass the predicate to the FindProperties method.
  • Iterate through the found properties.

System Requirements

GroupDocs.Metadata for Java APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.

  • Operating Systems: Microsoft Windows, Linux, MacOS
  • Development Environment: NetBeans, Intellij IDEA, Eclipse etc
  • Java Runtime Environment: J2SE 6.0 and above
  • Get the latest version of GroupDocs.Metadata for Java from Maven

try (Metadata metadata = new Metadata("input.jpeg")) {
	if (metadata.getFileFormat() != FileFormat.Unknown && !metadata.getDocumentInfo().isEncrypted()) {

		// Fetch all metadata properties that fall into a particular category
		IReadOnlyList properties = metadata.findProperties(new FallsIntoCategorySpecification(Tags.getContent()));
		System.out.println("The metadata properties describing some characteristics of the file content: title, keywords, language, etc.");
		for (MetadataProperty property : properties) {
			System.out.println(String.format("Property name: %s, Property value: %s", property.getName(), property.getValue()));
		}
	}
}

Live Demos of Extracting Metadata

Retrieve metadata information of JPEG file right now by visiting GroupDocs.Metadata Live Demos website.
The live demo has the following benefits

No need to download API

No need to write any code

Just upload the source file

Get download link to save the file

About JPEG File Format

A JPEG is a type of image format that is saved using the method of lossy compression. The output image, as result of compression, is a trade-off between storage size and image quality. Users can adjust the compression level to achieve the desired quality level while at the same time reduce the storage size. Image quality is negligibly affected if 10:1 compression is applied to the image. The higher the compression value, the higher the degradation in image quality. JPEG image file format was standardized by the Joint Photographic Experts Group and, hence, the name JPEG. The format has been the choice of storing and transmitting photographic images on the web. Almost all Operating systems now have viewers that support visualization of JPEG images, which are often stored with JPG extension as well. Even the web browsers support visualization of JPEG images.

Read More About JPEG File Format

Viewing & Extracting Metadata Of Other File Formats

Multi format documents and images metadata extraction API for Java. Get metadata details of some of the popular file formats as stated below.

Extract PDF Metadata

(Adobe Portable Document Format)

Extract DOC Metadata

(Microsoft Word Document)

Extract DOCM Metadata

(Microsoft Word Macro-Enabled Document)

Extract DOCX Metadata

(Microsoft Word Open XML Document)

Extract DOT Metadata

(Microsoft Word Document Template)

Extract DOTX Metadata

(Word Open XML Document Template)

Extract XLS Metadata

(Microsoft Excel Binary File Format)

Extract XLSX Metadata

(Microsoft Excel Open XML Spreadsheet)

Extract XLSM Metadata

(Microsoft Excel Macro-Enabled Spreadsheet)

Extract XLTM Metadata

(OOXML Macro Enabled Workbook Template)

Extract PPT Metadata

(PowerPoint Presentation)

Extract PPS Metadata

(Microsoft PowerPoint Slide Show)

Extract PPTX Metadata

(PowerPoint Open XML Presentation)

Extract PPSX Metadata

(PowerPoint Open XML Slide Show)

Extract POTX Metadata

(Microsoft PowerPoint Open XML Template)

Extract POTM Metadata

(Microsoft PowerPoint Template)

Extract PPTM Metadata

(Microsoft PowerPoint Presentation)

Extract PPSM Metadata

(Microsoft PowerPoint Slide Show)

Extract ODS Metadata

(Open Document Spreadsheet)

Extract ODT Metadata

(Open Document Text)

Extract TIFF Metadata

(Tagged Image File Format)

Extract PNG Metadata

(Portable Network Graphic)

Extract GIF Metadata

(Graphical Interchange Format File)

Extract BMP Metadata

(Bitmap File Format)

Extract JP2 Metadata

(JPEG 2000 Core Image File)

Extract WEBP Metadata

(Raster Web Image File Format)

Extract PSD Metadata

(Adobe Photoshop Document)

Extract WMF Metadata

(Windows Metafile)

Extract EMF Metadata

(Enhanced Metafile Format)

Extract MPP Metadata

(Microsoft Project Document)

Extract MSG Metadata

(Microsoft Outlook E-mail Message)

Extract EML Metadata

(E-mail Message)

Extract DWG Metadata

(Autodesk Design Data Formats)

Extract DXF Metadata

(AutoCAD Drawing Interchange)

Extract ONE Metadata

(Microsoft OneNote)

Extract MP3 Metadata

(MPEG Audio Layer III)

Extract WAV Metadata

(Waveform Audio File Format)

Extract DICOM Metadata

(Digital Imaging & Comm in Medicine)

Extract AVI Metadata

(Audio Video Interleave File)

Extract VSD Metadata

(Microsoft Visio 2003-2010 Drawing)

Extract VSDX Metadata

(Microsoft Visio Drawing)

Extract VSS Metadata

(Microsoft Visio 2003-2010 Stencil)

Extract VDX Metadata

(Microsoft Visio 2003-2010 XML Drawing)

Extract VSX Metadata

(Microsoft Visio 2003-2010 XML Stencil)

Extract ZIP Metadata

(Archive File Format)

Extract EPUB Metadata

(Digital E-Book File Format)

Extract VCF Metadata

(Electronic Business Card)

Back to top
 English