package libwebp
import "github.com/bep/gowebp/libwebp"
Index ¶
Functions ¶
func Encode ¶
func Encode(w io.Writer, src image.Image, o webpoptions.EncodingOptions) error
Encode encodes src as Webp into w using the options in o.
Any src that isn't one of *image.RGBA, *image.NRGBA, or *image.Gray will be converted to *image.NRGBA using draw.Draw first.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
libwebp/webpoptions |
- Version
- v0.1.0
- Published
- Apr 12, 2021
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 2 hours ago –
Tools for package owners.