Optionaloptions: TagDescriptionsOptionsWhether descriptions have been loaded into memory.
Get the number of tag descriptions available. Returns 0 if not yet loaded.
Clear the in-memory cache.
The disk cache is preserved; call preload() to reload from disk.
Synchronous lookup of a tag description. Returns undefined if descriptions haven't been loaded or tag is unknown.
For guaranteed results, call preload() first or use getAsync().
The tag name (e.g., "DateTimeOriginal", "ISO")
Tag description or undefined
Get all loaded tag descriptions. Automatically loads descriptions if not yet loaded.
Promise resolving to a readonly Map of tag names to descriptions
Asynchronous lookup of a tag description. Automatically loads descriptions if not yet loaded.
The tag name (e.g., "DateTimeOriginal", "ISO")
Promise resolving to tag description or undefined
Preload all tag descriptions into memory. Call this during application initialization for instant sync access later.
Promise that resolves when descriptions are loaded
Provides access to human-readable descriptions for ExifTool metadata tags.
Descriptions are sourced from ExifTool's built-in tag database (via
-listx) and merged with hand-curated descriptions for important tags.CAUTION: The first call to an async method (e.g.,
getAsync(),preload(),getAll()) may take several seconds as it launches ExifTool to retrieve tag information.SECOND CAUTION: The in-memory cache can consume significant memory (several MB).
THIRD CAUTION: The on-disk cache can consume disk space (several MB).
FOURTH CAUTION: The synchronous
get()method only works after descriptions are loaded! Be sure to callpreload()during application initialization for sync access later.FIFTH CAUTION: Tag descriptions may vary between ExifTool versions and languages.
Example