mirror of
https://github.com/talgo-cloud/talgo-libwebp.git
synced 2026-03-07 21:48:16 -08:00
Update examples.
This commit is contained in:
parent
fff8a5bbce
commit
6608fdcc01
2 changed files with 10 additions and 10 deletions
|
|
@ -20,10 +20,9 @@ func main() {
|
|||
io.Close()
|
||||
}()
|
||||
|
||||
config := webp.Config{
|
||||
Preset: webp.PresetDefault,
|
||||
Quality: 90,
|
||||
Method: 6,
|
||||
config, err := webp.ConfigPreset(webp.PresetDefault, 90)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// Encode into WebP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue