diff options
| author | Linus Unnebäck <linus@folkdatorn.se> | 2025-06-04 11:54:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-04 09:54:03 +0000 |
| commit | 1de2095f67c9719a973868618c3548dd6083f534 (patch) | |
| tree | 7b51d37a037c67fe0b2ecd1582970e83afd0cc5f /crates/typst-layout/src/image.rs | |
| parent | 5f776c7372ffecbbe959fbfa968c8c91efaf0061 (diff) | |
Add support for WebP images (#6311)
Diffstat (limited to 'crates/typst-layout/src/image.rs')
| -rw-r--r-- | crates/typst-layout/src/image.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-layout/src/image.rs b/crates/typst-layout/src/image.rs index 3e5b7d8b..8136a25a 100644 --- a/crates/typst-layout/src/image.rs +++ b/crates/typst-layout/src/image.rs @@ -147,6 +147,7 @@ fn determine_format(source: &DataSource, data: &Bytes) -> StrResult<ImageFormat> "jpg" | "jpeg" => return Ok(ExchangeFormat::Jpg.into()), "gif" => return Ok(ExchangeFormat::Gif.into()), "svg" | "svgz" => return Ok(VectorFormat::Svg.into()), + "webp" => return Ok(ExchangeFormat::Webp.into()), _ => {} } } |
