mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-15 01:43:49 +01:00
15 lines
162 B
Go
15 lines
162 B
Go
|
// +build cgo
|
||
|
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"image"
|
||
|
"io"
|
||
|
|
||
|
"github.com/chai2010/webp"
|
||
|
)
|
||
|
|
||
|
func decodeWebp(r io.Reader) (image.Image, error) {
|
||
|
return webp.Decode(r)
|
||
|
}
|