React Sketch Canvas
APIType Aliases

ExportImageType

ExportImageType = "jpeg" | "png"

Defined in: types/canvas.ts:11

Raster image format used by ReactSketchCanvasRef.exportImage and CanvasRef.exportImage.

Remarks

Use "png" when you need transparency. Use "jpeg" for smaller files or when the exported image should always include a solid background color.

On this page