Refactor thumbnail generation.

This commit is contained in:
2020-02-17 17:50:43 -08:00
parent 43974b7406
commit d74a8117d7
2 changed files with 40 additions and 36 deletions

View File

@@ -80,6 +80,7 @@ fn image(
media_items_id: String,
params: ImageParams,
) -> Result<impl warp::Reply, warp::Rejection> {
// TODO(wathiede): add caching headers.
match lib.thumbnail(
&media_items_id,
(params.w.unwrap_or(0), params.h.unwrap_or(0)),