Interface

FileOptions

FileOptions

Represents options for saving files.

Example

const fileOptions = {
    name: "image.png",
    width: 800,
    height: 600
};

Members

number

# height Optional

The desired height in pixels for image files.

Example
600
string

# name Optional

The name of the file to be saved. If not provided, it will be derived from the blob parameter. For File blobs (e.g. those retrieved from an <input type='file'>) this is the name of the file, for Blob objects it is blob.

Example
"report.pdf"
number

# width Optional

The desired width in pixels for image files.

Example
800