@woss/exiftool - v0.3.1
    Preparing search index...

    Class ExifToolCore

    Platform-free ExifTool core. In-memory metadata parsing and writing with plugin resolution. No Node.js builtins — suitable for browser, edge, and Node environments.

    The Node.js entry point extends this with filesystem operations.

    ExifTool

    import { ExifToolCore } from 'exiftool-ts';

    const core = new ExifToolCore();
    const result = await core.readBytes(buffer);
    const written = await core.writeBytes(buffer, { Title: 'Test' });

    Hierarchy (View Summary)

    Index
    tagDb: TagDb

    Tag database for custom tag definitions.

    Resolved options (merged with defaults).

    • Gets a parser by format name (e.g., 'JPEG', 'PNG', 'AVIF').

      Parameters

      • format: string

        Format identifier

      Returns FormatParser | undefined

      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.

      Parameters

      • bytes: Uint8Array

        Image file data as Uint8Array

      Returns Promise<FileInfo>

      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).

      Parameters

      • bytes: Uint8Array

        Original image data

      • tags: Record<string, TagValue>

        Tags to write (normalized format)

      Returns Promise<WriteOutcome>

      Write outcome with new bytes and any warnings

      UnsupportedFormatError if format doesn't support writing