metadata-extractor | Extracts Exif , IPTC , XMP , ICC and other metadata | Image Editing library
kandi X-RAY | metadata-extractor Summary
kandi X-RAY | metadata-extractor Summary
metadata-extractor is a Java library for reading metadata from media files.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns the description of this tag
- Gets a description of an AfAreaMode
- Returns a list of reconstructed faces
- Returns an array of face detection information
- Returns description of the specified tag type
- Returns a description of the focus mode
- Returns a description of the ArtFilter effect
- Returns a description of the scene mode
- Add Exif tag names to exif file
- Main method for testing
- Main entry point for processing
- Returns a description of this tag
- Sets the object array to the given array type
- Main entry point
- Process a single chunk header
- Process a chunk
- Returns the description of the tag
- Get the description of the tag
- Process a WAV directory
- Returns a description of the specified directory
- Attempts to enter a subif with the given tag ID
- Returns the description of the given tag type
- Returns the description of the specified type
- Read the sample description
- Process a box message
- Retrieves a description of the given tag type
metadata-extractor Key Features
metadata-extractor Examples and Code Snippets
-optimizations no_optimizations
-optimizations !class/marking/final,!class/unboxing/enum,!class/merging/vertical,!class/merging/horizontal,!field/removal/writeonly,!field/marking/private,!field/propagation/value,!m
Community Discussions
Trending Discussions on metadata-extractor
QUESTION
I am using Java and the library metadata extractor to work with file metadata.
What I want is to reliably check if a file supports the Exif header (also if it would be supported if it is not available in the header yet).
As far as I know, the Exif header is supported by JPEG and TIFF, and also by some PNGs (among others).
Currently I am just checking the file type for JPEG or TIFF (by using FileTypeDetector::detectFileType
), but is it possible to reliably determine whether the file supports the Exif header without checking the file type? Then files of other formats which also support the Exif header could be taken into account, too.
Thanks in advance!
...ANSWER
Answered 2021-Aug-04 at 07:37Is it possible to reliably determine whether the file supports the Exif header without checking the file type?
No. There's no way to "detect" whether a file supports Exif meta data (the term "Exif header" is a misnomer) by inspecting the file. I think your current way of determining the file format, and keep a list of formats you know support Exif makes sense.
Note that each file format that supports Exif metadata typically wraps it in a "native" (as in the format's own) container structure, so you typically have to add custom code for each format you want to add Exif metadata to. The only exception is TIFF, as Exif metadata is based on the TIFF format. See also Wikipedia on Exif.
Of course, it is technically possible to append or insert Exif metadata to any file, however, but this will typically render the file corrupt or the Exif metadata will be ignored by other software.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install metadata-extractor
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page