Skip to content

Interface: ExportImageOptions ​

Options shared by toBase64, toFile, and saveToPhotoLibrary.

Properties ​

PropertyTypeDescription
format?ExportFormatDefaults to 'png'.
quality?number0..1 quality applied to JPEG encoding only. Ignored for PNG (always lossless). Defaults to 1.
trim?booleanCrop the rendered bitmap to the strokes' bounding box (plus a small margin) instead of the full canvas size. Defaults to false, except for saveToPhotoLibrary where it defaults to true.

Released under the MIT License.