Reference

Use the format that fits the job.

Rastry supports the same three formats for input and output today. These notes explain what each one is good at and show the exact conversion shape.

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.