Exifr is a fast and very versatile JavaScript EXIF reading library that works everywhere, parses everything and handles just about anything you throw at it. It can handle any input: buffers, url, <img> tag and more; .jpg, .tif, and .heic files; and TIFF (EXIF, GPS, etc.), XMP, ICC, IPTC, JFIF segments. It skips parsing tags you don’t need, and reads only the first few bytes. There’s no need to read the whole file to see if there’s an EXIF file in it, or extract all the data when you just need a few tags. Instead of reading byte by byte from start to finish, Exifr jumps through the file structure from pointer to pointer, making it extremely fast and efficient!
Features
- Extremely fast: +-1ms per file
- Handles any input
- .jpg, .tif, .heic files
- TIFF (EXIF, GPS, etc.), XMP, ICC, IPTC, JFIF segments
- Reads only first few bytes
- Skips parsing tags you don't need
- Isomorphic: Browser & Node.js
- Zero dependencies
- Thumbnail extraction
- Salvages broken files
- Modular
- Customizable tag dictionaries
- Bundled as ESM or UMD/CJS
- Tested and benchmarked
- Promise based
- Supports even IE10
- Minimalist and reliable XMP Parser
- XMP Extended
- Multi-segment ICC
- Extracts all ICC tags
- TIFF dictionaries contain less frequently used, non-standard and proprietary TIFF/EXIF tags (only in full bundle)
- Handles UCS2 formatted strings (XPTitle tag), and not leaving it as a buffer
- Normalizes strings
- Revives dates into Date class instances
- Conversion of GPS coords from DMS to DD format
Categories
LibrariesLicense
MIT LicenseFollow Exifr
Other Useful Business Software
Auth0 for AI Agents now in GA
Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Exifr!