ConstAllow parsing of archaic timezone offsets that are no longer in use.
These include historical offsets like:
Warning: Enabling this may lead to incorrect timezone parsing for modern files, as these offsets are not currently used anywhere. Only enable this if you are specifically working with historical photographs or scanned archival material.
Allow parsing of the UTC-12:00 timezone offset ("Baker Island Time") as a valid timezone.
This timezone is not used for any populated land, and is disabled by default to prevent incorrect timezone parsing from files with mangled metadata.
Logger instance used throughout exiftool-vendored.
By default, this is set to ConsoleLogger if NODE_DEBUG=exiftool-vendored is set, otherwise NoLogger.
This can be changed at runtime to redirect logging output. When changed, the batch-cluster global logger is also updated for consistency.
Maximum distance (in minutes) from a valid timezone offset to accept when inferring timezones from GPS or UTC timestamp comparisons.
This threshold handles GPS time drift and clock skew. GPS acquisition may lag behind the actual photo time, especially if the GPS fix is old or the camera clock is slightly off.
Additional timezone abbreviation → UTC offset (in minutes) mappings.
These are merged on top of the built-in table, with user values taking precedence. This allows you to:
Keys must be uppercase. Values are UTC offset in minutes.
import { Settings } from "exiftool-vendored"
// US Central Standard Time (UTC-6):
Settings.tzAbbreviationOffsets.value = { CST: -6 * 60 }
// India Standard Time (UTC+5:30):
Settings.tzAbbreviationOffsets.value = { IST: 5 * 60 + 30 }
// Multiple at once:
Settings.tzAbbreviationOffsets.value = {
CST: -6 * 60,
IST: 5 * 60 + 30,
}
Reset all settings to their default values
Library-wide configuration settings for exiftool-vendored