Refactor thumbnail generation.
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user