Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
Encode encodes the input image in the WebP format with the specified quality and writes it to the given destination writer. The function converts the image into a byte slice and calls a C function to perform the encoding. The resulting encoded data is written to the destination writer. If there are any errors during the encoding or writing process, an error is returned. Note: The C function is not included in this code snippet, it must be implemented separately. Example usage:
err := webp.Encode(img, 75, w) if err != nil { log.Fatal(err) }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.