Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ADR 0001: Native WebP Conversion

Context

Kroki-rs needed to support the WebP image format to provide modernized, efficient diagram rendering suitable for modern web applications. The existing Java implementation heavily relied on external CLI tools or JVM-specific libraries to convert outputs.

Decision

We chose to implement native Rust-based WebP conversion by leveraging the resvg crate for high-fidelity SVG rasterization and the image crate for WebP encoding. This approach bypasses external dependencies entirely.

Trade-offs

Status

Accepted and Implemented.