webp-sh / gowebp

C bindings and an API for encoding Webp images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Report Card libwebp Version codecov GoDoc

This library provides C bindings and an API for encoding Webp images using Google's libwebp.

It is based on go-webp, but this includes and builds the libwebp C source from a versioned Git subtree.

Update libwebp version

  1. Pull in the relevant libwebp version, e.g. ./pull-libwebp.sh v1.2.0
  2. Regenerate wrappers with go generate ./gen
  3. Update the libwebp version badge above.

Local development

Compiling C code isn' particulary fast; if you install libwebp on your PC you can link against that, useful during development.

On a Mac you may do something like:

brew install webp
go test ./libwebp -tags dev

About

C bindings and an API for encoding Webp images.

License:MIT License


Languages

Language:C 94.9%Language:M4 1.0%Language:CMake 1.0%Language:Roff 0.9%Language:Makefile 0.8%Language:Shell 0.3%Language:Go 0.3%Language:C++ 0.3%Language:Python 0.2%Language:HTML 0.2%