allow image/gif
This commit is contained in:
parent
1f8e4873a1
commit
ac64d93635
3 changed files with 2 additions and 2 deletions
|
|
@ -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 } )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue