Client-side EXIF parser for JPEG/TIFF images. Version 1.0.1 is the latest release. This is a fork of ExifReader with a simplified API, designed specifically for the Component package manager (not npm). It extracts metadata tags from an ArrayBuffer input. The package has not been updated since 2014 and targets legacy browser and Node.js environments. For modern usage, consider using the original ExifReader or exifr.
npm install exif-componentVerified import paths — ran on the pinned version, not inferred.
Reads a JPEG file, converts the Node.js Buffer to an ArrayBuffer, and parses EXIF tags using the exif function.
Use exifr (https://www.npmjs.com/package/exifr) or ExifReader (https://www.npmjs.com/package/exifreader) instead.
Install using component install component/exif or directly from GitHub. Alternatively, migrate to an npm-published EXIF library.
Use buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength) to convert a Node.js Buffer to an ArrayBuffer.
Use const exif = require('exif-component'); instead of import { exif } from 'exif-component'; or import exif from 'exif-component';.Convert Buffer to ArrayBuffer before calling exif: const arrayBuffer = buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength);
No dependency data recorded yet.