-
Notifications
You must be signed in to change notification settings - Fork 77
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 confirmImageSourceis included:import exifr from "exifr"; const exif: Exif = await exifr.parse(file, { xmp: true }); console.log("EXIF:", exif); // { ..., ImageSource: 'InfraredCamera', ... }
-
Parse with
pickincludingImageSource:import exifr from "exifr"; const exif: Option<Exif> = await exifr.parse(file, { xmp: true, pick: ["ImageSource"], }); console.log("EXIF:", exif); // undefined
-
Parse with
pickincluding 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:ImageSourceis present in the parsed result. - With
pick:['ImageSource']: The result isundefined. - With
pick:['Make', 'ImageSource']: OnlyMakeis present in the result, whileImageSourceis missing.
Environment Details
exifrversion:v7.1.3- Node.js version:
v18.20.4 - File type: JPEG/JPG
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels