mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-13 12:57:10 +02:00
feat: log WebP encoder/decoder selection
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
c82755bdf5
commit
bb1a734afc
1 changed files with 10 additions and 0 deletions
|
|
@ -19,6 +19,16 @@ import (
|
|||
xdraw "golang.org/x/image/draw"
|
||||
)
|
||||
|
||||
func init() {
|
||||
conf.AddHook(func() {
|
||||
if err := webp.Dynamic(); err != nil {
|
||||
log.Debug("Using WASM WebP encoder/decoder", "reason", err)
|
||||
} else {
|
||||
log.Debug("Using native libwebp for WebP encoding/decoding")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
var bufPool = sync.Pool{
|
||||
New: func() any {
|
||||
return new(bytes.Buffer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue