diff options
author | hacktivista <sir@hacktivista.com> | 2021-11-02 10:15:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 10:15:13 +0000 |
commit | 1ec5b0709b65541c8acee1a34e7f419f8d2b60f1 (patch) | |
tree | b26b2c1a7b20263a6009557234c2c5bbb8c06ea4 /mediaapi | |
parent | fbd1a0ab13b330026b3893ee40582fcacbfae376 (diff) |
Support WebP based thumbnails (#2033)
Co-authored-by: Felix Freeman <libsys@hacktivista.org>
Diffstat (limited to 'mediaapi')
-rw-r--r-- | mediaapi/thumbnailer/thumbnailer_nfnt.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mediaapi/thumbnailer/thumbnailer_nfnt.go b/mediaapi/thumbnailer/thumbnailer_nfnt.go index aa9faf4c..d7aa294a 100644 --- a/mediaapi/thumbnailer/thumbnailer_nfnt.go +++ b/mediaapi/thumbnailer/thumbnailer_nfnt.go @@ -27,6 +27,10 @@ import ( // Imported for png codec _ "image/png" + + // Imported for webp codec + _ "golang.org/x/image/webp" + "os" "time" |