add support for gifs to the thumbnails service

This commit is contained in:
David Christofas
2021-03-10 17:29:26 +01:00
parent a8ea9cc94e
commit b490e32d7d
4 changed files with 9 additions and 2 deletions
@@ -5,6 +5,9 @@ import (
"crypto/tls"
"fmt"
"image"
_ "image/gif" // Import the gif package so that image.Decode can understand gifs
_ "image/jpeg" // Import the jpeg package so that image.Decode can understand jpegs
_ "image/png" // Import the png package so that image.Decode can understand pngs
"net/http"
"net/url"
"path"