Properties
type
type?: string
The file mime type. Defaults to 'image/png'
quality
quality?: number
The compression quality when turning the canvas into a file. A value between 0 and 1, where 1 is maximum quality, but also yields very big files. Not applicable for PNGs. Defaults to undefined
parallel
parallel?: 1
How many can we run in parallel.
getBasename
getBasename?: __type
Hook that runs when determining the basename for a file. Defaults to () => 'Untitled'
getExtension
getExtension?: __type
Hook that runs when determining the extension of a file.
getFilename
getFilename?: __type
Hook that runs when determining the name of a file.
mimeTypeMap
mimeTypeMap?: __type
An object with key value pairs describing mime type relation to extension. Defaults to undefined