Reference

Use the format that fits the job.

Rastry supports PNG, JPEG, and WebP everywhere, with HEIC available through the system codec on macOS and Windows. These notes explain what each format is good at and show the exact conversion shape.

HEIC

HEIC

Use HEIC for local photo workflows when macOS or Windows provides a working system codec.

Read format guide
JPEG

JPEG

Use JPEG for opaque photographic images where adjustable lossy compression is useful.

Read format guide
PNG

PNG

Use PNG when lossless pixels and transparency are more important than the smallest file.

Read format guide
WEBP

WebP

Use WebP for compact web delivery with optional transparency and adjustable quality.

Read format guide

Supported format guards are defined in the shared contracts package.