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-svg/src/image.rs | |
| parent | 5f776c7372ffecbbe959fbfa968c8c91efaf0061 (diff) | |
Add support for WebP images (#6311)
Diffstat (limited to 'crates/typst-svg/src/image.rs')
| -rw-r--r-- | crates/typst-svg/src/image.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-svg/src/image.rs b/crates/typst-svg/src/image.rs index d7443202..1868ca39 100644 --- a/crates/typst-svg/src/image.rs +++ b/crates/typst-svg/src/image.rs @@ -45,6 +45,7 @@ pub fn convert_image_to_base64_url(image: &Image) -> EcoString { ExchangeFormat::Png => "png", ExchangeFormat::Jpg => "jpeg", ExchangeFormat::Gif => "gif", + ExchangeFormat::Webp => "webp", }, raster.data(), ), |
