Skip to content

Commit

Permalink
update references to this repo, update versions, remove some CI files
Browse files Browse the repository at this point in the history
  • Loading branch information
lyoneel committed Jul 7, 2024
1 parent 66059de commit b964732
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 108 deletions.
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

21 changes: 0 additions & 21 deletions Makefile

This file was deleted.

29 changes: 5 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,10 @@
![logo](test_data/images/logo.jpg)
# go-webp
[![Build Status](https://api.travis-ci.com/kolesa-team/go-webp.svg?branch=master)](https://travis-ci.com/github/kolesa-team/go-webp)
[![GoDoc](https://godoc.org/github.com/kolesa-team/go-webp?status.svg)](https://godoc.org/github.com/kolesa-team/go-webp)
[![Go Report](https://goreportcard.com/badge/github.com/kolesa-team/go-webp)](https://goreportcard.com/report/github.com/kolesa-team/go-webp)
[![codecov](https://codecov.io/gh/kolesa-team/go-webp/branch/master/graph/badge.svg)](https://codecov.io/gh/kolesa-team/go-webp)

Golang Webp library for encoding and decoding, using **C** binding for Google libwebp

## Requirements
[libwebp](https://developers.google.com/speed/webp/docs/api)

## Benchmarks
```text
% go test -bench "^BenchmarkDecode" ./webp
goos: darwin
goarch: amd64
pkg: github.com/kolesa-team/go-webp/webp
BenchmarkDecodeLossy-12 45 25965139 ns/op
BenchmarkDecodeXImageLossy-12 13 90735879 ns/op
BenchmarkDecodeLossless-12 64 18887482 ns/op
BenchmarkDecodeXImageLossless-12 27 42422596 ns/op
PASS
ok github.com/kolesa-team/go-webp/webp 7.877s
```

## Install libwebp
#### MacOS:
```bash
Expand All @@ -36,7 +17,7 @@ sudo apt-get install libwebp-dev
```

## Install
`go get -u github.com/kolesa-team/go-webp`
`go get -u github.com/lyoneel/go-webp`

## Examples

Expand All @@ -49,8 +30,8 @@ import (
"log"
"os"

"github.com/kolesa-team/go-webp/decoder"
"github.com/kolesa-team/go-webp/webp"
"github.com/lyoneel/go-webp/decoder"
"github.com/lyoneel/go-webp/webp"
)

func main() {
Expand Down Expand Up @@ -85,8 +66,8 @@ go run example/decode/main.go
package main

import (
"github.com/kolesa-team/go-webp/encoder"
"github.com/kolesa-team/go-webp/webp"
"github.com/lyoneel/go-webp/encoder"
"github.com/lyoneel/go-webp/webp"
"image/jpeg"
"log"
"os"
Expand Down
5 changes: 2 additions & 3 deletions _examples/decode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@
package main

import (
"github.com/lyoneel/go-webp/decoder"
"github.com/lyoneel/go-webp/webp"
"image/jpeg"
"log"
"os"

"github.com/kolesa-team/go-webp/decoder"
"github.com/kolesa-team/go-webp/webp"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _examples/encode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
package main

import (
"github.com/kolesa-team/go-webp/encoder"
"github.com/kolesa-team/go-webp/webp"
"github.com/lyoneel/go-webp/encoder"
"github.com/lyoneel/go-webp/webp"
"image/jpeg"
"log"
"os"
Expand Down
10 changes: 0 additions & 10 deletions codecov.yml

This file was deleted.

2 changes: 1 addition & 1 deletion decoder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
"io"
"unsafe"

"github.com/kolesa-team/go-webp/utils"
"github.com/lyoneel/go-webp/utils"
)

// Decoder stores information to decode picture
Expand Down
2 changes: 1 addition & 1 deletion decoder/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
package decoder

import (
"github.com/kolesa-team/go-webp/utils"
"github.com/lyoneel/go-webp/utils"
"github.com/stretchr/testify/require"
"image"
"os"
Expand Down
4 changes: 2 additions & 2 deletions encoder/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
)

// Default libwebp image hints
//noinspection GoUnusedConst
// noinspection GoUnusedConst
const (
HintDefault ImageHint = iota
HintPicture
Expand All @@ -42,7 +42,7 @@ const (
)

// Default libwebp presets
//noinspection GoUnusedConst
// noinspection GoUnusedConst
const (
PresetDefault EncodingPreset = iota
PresetPicture
Expand Down
11 changes: 7 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
module github.com/kolesa-team/go-webp
module github.com/lyoneel/go-webp

go 1.10
go 1.22

require github.com/stretchr/testify v1.9.0

require (
github.com/stretchr/testify v1.7.0
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
17 changes: 6 additions & 11 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d h1:RNPAfi2nHY7C2srAV8A49jpsYr0ADedCk1wq6fTMTvs=
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
2 changes: 1 addition & 1 deletion utils/vp8.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

package utils

//noinspection GoUnusedConst
// noinspection GoUnusedConst
const (
Vp8StatusOk VP8StatusCode = iota
Vp8StatusOutOfMemory
Expand Down
2 changes: 1 addition & 1 deletion utils/webp.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package utils

type FormatType int

//noinspection GoUnusedConst
// noinspection GoUnusedConst
const (
FormatUndefined FormatType = iota
FormatLossy
Expand Down
4 changes: 2 additions & 2 deletions webp/webp.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
package webp

import (
"github.com/kolesa-team/go-webp/decoder"
"github.com/kolesa-team/go-webp/encoder"
"github.com/lyoneel/go-webp/decoder"
"github.com/lyoneel/go-webp/encoder"
"image"
"image/color"
"io"
Expand Down
4 changes: 2 additions & 2 deletions webp/webp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ package webp

import (
"bytes"
"github.com/kolesa-team/go-webp/decoder"
"github.com/kolesa-team/go-webp/encoder"
"github.com/lyoneel/go-webp/decoder"
"github.com/lyoneel/go-webp/encoder"
"github.com/stretchr/testify/require"
"image"
"image/color"
Expand Down

0 comments on commit b964732

Please sign in to comment.