Creates a new ExifToolCore instance.
Optionalopts: Partial<ExifToolOptions>
Optional configuration options
Custom format parsers (default: all built-in)
Suppress parsing warnings
Format-specific parsing hints
ReadonlytagTag database for custom tag definitions.
ReadonlyoptionsResolved options (merged with defaults).
Gets a parser by format name (e.g., 'JPEG', 'PNG', 'AVIF').
Format identifier
FormatParser if available, undefined otherwise
Parses metadata from an in-memory buffer.
File-system-derived tags (FileName, FileSize, FileModifyDate, etc.) are absent — only embedded metadata is returned.
Image file data as Uint8Array
Parsed file information with tags
Writes metadata tags to an in-memory buffer.
Returns the new bytes with updated metadata container (JPEG APP1, PNG eXIf, WebP EXIF, AVIF/HEIF meta box).
Original image data
Tags to write (normalized format)
Write outcome with new bytes and any warnings
Reads metadata from a file path.
Path to the image file
Optionalhints: ParseHints
Optional parsing hints for format-specific behavior
Parsed file information with tags grouped by metadata standard
Writes metadata tags to a file.
Creates a backup file (<file>_original) unless overwriteOriginal is set.
Supports JPEG (APP1), PNG (eXIf), WebP (EXIF), AVIF/HEIF (meta box).
Write result with success status and any warnings
Runs CLI-style arguments programmatically.
Command-line arguments (e.g., ['-j', 'photo.jpg'])
Exit code (0 = success)
Prints CLI help text.
Node.js entry point for exiftool-ts. Extends ExifToolCore with filesystem-based read/write operations.
This is the main class for Node.js environments. For browser/edge, use ExifToolCore directly with
Uint8Arraybuffers.Example