mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Fix transparency problem when converting 32-bit images to WebP
Fixes #8729
This commit is contained in:
@@ -28,3 +28,8 @@ import (
|
||||
func Encode(w io.Writer, m image.Image, o webpoptions.EncodingOptions) error {
|
||||
return libwebp.Encode(w, m, o)
|
||||
}
|
||||
|
||||
// Supports returns whether webp encoding is supported in this build.
|
||||
func Supports() bool {
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user