diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-24 21:49:51 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-24 21:49:51 +0100 |
commit | dcd6b024c6874c17e739ad62f80eb3e212ec5e91 (patch) | |
tree | cfd96059df204e305e4faaf3948700db51be539c /server/src/routes/ui/assets.rs | |
parent | 5f46a8177814f0694aeab818486fd545cd02e94a (diff) | |
download | jellything-dcd6b024c6874c17e739ad62f80eb3e212ec5e91.tar jellything-dcd6b024c6874c17e739ad62f80eb3e212ec5e91.tar.bz2 jellything-dcd6b024c6874c17e739ad62f80eb3e212ec5e91.tar.zst |
readd override poster support
Diffstat (limited to 'server/src/routes/ui/assets.rs')
-rw-r--r-- | server/src/routes/ui/assets.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/routes/ui/assets.rs b/server/src/routes/ui/assets.rs index 36d6ee3..ef73fcc 100644 --- a/server/src/routes/ui/assets.rs +++ b/server/src/routes/ui/assets.rs @@ -33,6 +33,7 @@ pub async fn r_asset( // fit the resolution into a finite set so the maximum cache is finite too. let width = 2usize.pow(width.unwrap_or(2048).clamp(128, 2048).ilog2()); + // TODO configure avif quality and speed. let path = jellytranscoder::image::transcode(source, 50., 5, width) .await .context("transcoding asset")?; |