Interface PNGMetadata

Text metadata written into PNGs by Image.encode

interface PNGMetadata {
    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