Support webp and gif for profile's pic

This commit is contained in:
Daniele Tonon
2024-01-02 16:29:02 +01:00
parent 6b35b0393f
commit 5264f6df2b

View File

@@ -6,6 +6,7 @@ import (
"image" "image"
"image/color" "image/color"
"image/draw" "image/draw"
_ "image/gif"
"math" "math"
"net/http" "net/http"
"net/url" "net/url"
@@ -14,6 +15,8 @@ import (
"time" "time"
"unicode" "unicode"
_ "golang.org/x/image/webp"
"github.com/fogleman/gg" "github.com/fogleman/gg"
"github.com/go-text/typesetting/di" "github.com/go-text/typesetting/di"
"github.com/go-text/typesetting/font" "github.com/go-text/typesetting/font"