From 29ca69e874ce5e8a60fa37bcf6672b7f9be1fa63 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Thu, 18 Jan 2024 21:00:11 -0800 Subject: [PATCH] Move EXIF profile extraction from jpeg.js into exif.js --- image/parsers/exif.js | 72 +++++++++++++++++++++++++++++++++++++++++++ image/parsers/jpeg.js | 69 ++--------------------------------------- 2 files changed, 75 insertions(+), 66 deletions(-) diff --git a/image/parsers/exif.js b/image/parsers/exif.js index 0719dea..73a56ad 100644 --- a/image/parsers/exif.js +++ b/image/parsers/exif.js @@ -223,6 +223,78 @@ export function getExifValue(stream, lookAheadStream, DEBUG = false) { return exifValue; } +/** + * Reads an Image File Directory from stream, populating the map. + * @param {ByteStream} stream The stream to extract the Exif value descriptors. + * @param {ByteStream} lookAheadStream The lookahead stream if the offset is used. + * @param {Map