canvaskit-wasm 0.39 build 2026-04-29

ImageFormat

The encoded format passed to Image.encodeToBytes. Determines the bytes returned (and therefore the file extension you'd save them under).

All values

ValueNotes
PNGLossless. No quality argument (passing one is ignored).
JPEGLossy. quality argument 0–100 controls compression.
WEBPModern lossy/lossless format. quality 0–100.

See also