Skip to content

New node-exif parser configuration

Pre-release
Pre-release
Compare
Choose a tag to compare
@oeuillot oeuillot released this 20 Jan 16:19
· 10 commits to master since this release

Hello everyone,

For this version, I have added lot of new options:

  • tiffOffsets (boolean) an object named "offsets" is added to exifData and contains lot of offsets needed to get thumbnail and other things.
    • fixThumbnailOffset: correct the thumbnail offset in order to have an offset from the start of the buffer/file.
    • maxEntries: Specifies the maximum entries to be parsed (setted to 128 by default)
    • ifd0MaxEntries:
    • ifd1MaxEntries
    • maxGpsEntries
    • maxInteroperabilityEntries
    • agfaMaxEntries
    • epsonMaxEntries
    • fujifilmMaxEntries
    • olympusMaxEntries
    • panasonicMaxEntries
    • sanyoMaxEntries
    • noPadding (ignore padding tag, true by default)

I have added debug() dependency, so don't forget to make a npm update.
If you want to enable exif logs, set the environnement variable "DEBUG" to "exif" before launching node.