allow image/gif

This commit is contained in:
zapashcanon 2022-04-06 01:28:15 +02:00
parent 1f8e4873a1
commit ac64d93635
No known key found for this signature in database
GPG key ID: 8981C3C62D1D28F1
3 changed files with 2 additions and 2 deletions

View file

@ -180,7 +180,7 @@ let make_image image =
| None -> Error "invalid image type"
| Some mime -> (
match mime with
| "image/jpeg" | "image/png" | "image/webp" -> (
| "image/jpeg" | "image/png" | "image/webp" | "image/gif" -> (
match make_thumbnail content with
| Error e -> Error e
| Ok thumbnail -> Ok { name; alt; content; thumbnail } )