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
Use HEIC for local photo workflows when macOS or Windows provides a working system codec.
Read format guide JPEGJPEG
Use JPEG for opaque photographic images where adjustable lossy compression is useful.
Read format guide PNGPNG
Use PNG when lossless pixels and transparency are more important than the smallest file.
Read format guide WEBPWebP
Use WebP for compact web delivery with optional transparency and adjustable quality.
Read format guideSupported format guards are defined in the shared contracts package.