exiftool-vendored
    Preparing search index...

    Class ExifToolTask<T>Abstract

    Type Parameters

    • T

    Hierarchy

    • Task<T>
      • ExifToolTask
    Index
    args: string[]
    command: string
    errors: string[] = []
    onProgress: ((bytesHashed: number) => void) | undefined

    ExifToolTaskProgressOptions.onProgress

    options?: ExifToolTaskOptions & Partial<Pick<ExifToolOptions, "useMWG">>

    pass the ExifTool instance's useMWG so this command matches every other command the instance sends.

    parser: Parser<T>
    taskId: number
    warnings: string[] = []
    • get pending(): boolean

      Returns boolean

    • get promise(): Promise<T>

      Returns Promise<T>

      the resolution or rejection of this task.

    • get runtimeMs(): number | undefined

      Returns number | undefined

    • get state(): string

      Returns string

    • get timeoutElapsedMs(): number | undefined

      Time since this task started, or since its last timeout reset.

      Returns number | undefined

    • Called by BatchProcess when this task starts. Overrides must pass every argument to super.onStart(), or Task.resetTimeout stops working.

      Parameters

      • opts: TaskOptions
      • OptionalbeforeParse: () => void
      • OptionalresetTimeout: () => boolean

      Returns void

    • Called with this task's stderr. Non-blank stderr is logged at warn, so a subclass that removes lines it understands before calling super.onStderr() keeps those lines out of the log.

      Parameters

      • buf: string | Buffer<ArrayBufferLike>

      Returns void

    • Parameters

      • buf: string | Buffer<ArrayBufferLike>

      Returns void

    • Parameters

      • input: string
      • Optionalerror: Error

      Returns T

    • Parameters

      • error: Error

      Returns boolean

      true if the wrapped promise was rejected

    • Restart this task's timeout. Call this only after verifying that the task made progress: output alone is not progress.

      Returns boolean

      false if the task isn't running or has no timeout, and for startup and health-check tasks.

    • Returns string

    • Splits ExifTool's {progress:BYTES} lines from the rest of stderr.

      Parameters

      • stderr: string

      Returns { bytes: number[]; rest: string }