OptionaltypeDefault "base64" (a data URL string).
OptionalformatDefault "image/png". A circle frame exported as "image/jpeg" warns — JPEG has no alpha channel.
Optionalquality0-1. Only meaningful for "image/jpeg"/"image/webp". Default: browser default.
OptionalwidthOutput pixel width. Default: the frame's width.
OptionalheightOutput pixel height. Default: the frame's height.
OptionalfieldThe FormData field name. Default "file".
OptionalfileDefault: "crop.<ext>", extension derived from format.
OptionalextraExtra FormData fields to send alongside the file. Default {}.
OptionalfetchMerged into the underlying fetch() call (method/body are always overridden). Default {}.
OptionaluploaderOverrides the constructor's uploader for this call only.
Options for
upload()— everythingexport()takes, plus these.