-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
Description of the Problem
When using the pick
option in exifr.parse
, certain tags like ImageSource
are missing from the parsed result, even though they are correctly parsed when pick
is not used.
Steps to Reproduce
-
Parse metadata without
pick
, and confirmImageSource
is included:import exifr from "exifr"; const exif: Exif = await exifr.parse(file, { xmp: true }); console.log("EXIF:", exif); // { ..., ImageSource: 'InfraredCamera', ... }
-
Parse with
pick
includingImageSource
:import exifr from "exifr"; const exif: Option<Exif> = await exifr.parse(file, { xmp: true, pick: ["ImageSource"], }); console.log("EXIF:", exif); // undefined
-
Parse with
pick
including multiple tags:import exifr from "exifr"; const exif: Exif = await exifr.parse(file, { xmp: true, pick: ["Make", "ImageSource"], }); console.log("EXIF:", exif); // { Make: 'DJI' }
Expected Behavior
ImageSource
should be included in the result when explicitly specified in the pick
array, even when it is the only element.
Actual Behavior
- Without
pick
:ImageSource
is present in the parsed result. - With
pick
:['ImageSource']
: The result isundefined
. - With
pick
:['Make', 'ImageSource']
: OnlyMake
is present in the result, whileImageSource
is missing.
Environment Details
exifr
version:v7.1.3
- Node.js version:
v18.20.4
- File type: JPEG/JPG
Trikolon
Metadata
Metadata
Assignees
Labels
No labels