ExportOptions.image
configurationParameters for the exported Image.
- options.width
Number
The width of the exported image. Defaults to the scene width.
- options.height
Number
The height of the exported image. Defaults to the scene height.
- options.cors
String(default: "anonymous")
Specifies how cross-origin images should be requested.
Requesting images without CORS will "taint" the canvas. It will still be visible on the page, but all script access to it is disabled to prevent information disclosure.
exportOptions.image
ObjectexportOptions.image.cors
StringSpecifies how cross-origin images should be requested.
Requesting images without CORS will "taint" the canvas. It will still be visible on the page, but all script access to it is disabled to prevent information disclosure.
Can be set to:
- "anonymous" - do not send user credentials as part of the request
- "use-credentials" - send credentials as part of the request
- false - fetch images without CORS, possibly tainting the canvas
Default: "anonymous"
The width of the exported image. Defaults to the scene width.
The width of the exported image. Defaults to the scene width.