File: README.md

package info (click to toggle)
golang-github-bep-gowebp 0.2.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,588 kB
  • sloc: ansic: 75,826; sh: 1,085; makefile: 579; python: 350; cpp: 262
file content (28 lines) | stat: -rw-r--r-- 1,200 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[![Go Report Card](https://goreportcard.com/badge/github.com/bep/gowebp)](https://goreportcard.com/report/github.com/bep/gowebp)
[![libwebp Version](https://img.shields.io/badge/libwebp-v1.2.4-blue)](https://github.com/webmproject/libwebp)
[![codecov](https://codecov.io/gh/bep/gowebp/branch/master/graph/badge.svg)](https://codecov.io/gh/bep/gowebp)
[![GoDoc](https://godoc.org/github.com/bep/gowebp/libwebp?status.svg)](https://godoc.org/github.com/bep/gowebp/libwebp)

This library provides C bindings and an API for **encoding** Webp images using Google's [libwebp](https://github.com/webmproject/libwebp).

It is based on [go-webp](https://github.com/kolesa-team/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:

```bash
brew install webp
go test ./libwebp -tags dev
```