Registry / serialization / chai2010-webp

chai2010-webp

JSON →
library1.1.1gogounverified

Package webp implements a decoder and encoder for WEBP images.

go get github.com/chai2010/webp
INSTALL
IMPORT
SIG · CHAI2010-WEBP
C
chai2010-webp
serializationgov1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

webp
github.com/chai2010/webp

Encode a PNG image to WebP format.

package main import ( "github.com/chai2010/webp" "image/png" "os" ) func main() { f, _ := os.Open("input.png") defer f.Close() img, _ := png.Decode(f) out, _ := os.Create("output.webp") defer out.Close() webp.Encode(out, img, nil) }
Debug
Known issues
gotchaRequires CGO and a C compiler (GCC/MinGW) to build.
fix
Install GCC or MinGW and set CGO_ENABLED=1.
affects: >=1.0.0
Upgrade
Version history
1.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources
chai2010-webp — go get chai2010-webp · libregistry