Interface Metadata

Metadata written by the encoders. Each format stores the fields it has a place for:

Format Fields
PNG, APNG all (as text chunks)
JPEG author, description, copyright, creation time, software (Exif); comment (comment marker)
WebP, AVIF, JPEG XL author, description, copyright, creation time, software (Exif)
GIF software, comment (comment extensions)
TGA author, comment, creation time, software (extension area)

Empty fields are left out

interface Metadata {
    author?: string;
    comment?: string;
    copyright?: string;
    creationTime?: string | number | Date;
    description?: string;
    disclaimer?: string;
    software?: string;
    source?: string;
    title?: string;
    warning?: string;
}

Properties

author?: string

The image's author

comment?: string

A comment for the image

copyright?: string

The image's copyright info

creationTime?: string | number | Date

The image's creation time. Default: now

description?: string

The image's description

disclaimer?: string

A disclaimer for the image

software?: string

The software used to create the image. Default: 'github.com/matmen/ImageScript vX.X.X', '' leaves it out

source?: string

The image's source

title?: string

The image's title

warning?: string

A warning for the image