Skip to content

Commit ce0b067

Browse files
committed
Use a forked go-libwebp with a newer libwebp version
1 parent bcbdb35 commit ce0b067

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM alpine:3.21 AS builder
33
RUN apk --no-cache add go npm libwebp-dev libwebp-static git make clang musl-dev
44
COPY . /pixlet
55
WORKDIR /pixlet
6-
RUN npm install && npm run build && STATIC=1 make build
6+
RUN npm install && npm run build && STATIC=1 CC=clang make build
77

88
FROM scratch
99

encode/encode_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"strings"
88
"testing"
99

10+
"github.com/ingmarstein/go-libwebp/webp"
1011
"github.com/stretchr/testify/assert"
1112
"github.com/stretchr/testify/require"
12-
"github.com/tidbyt/go-libwebp/webp"
1313
"tidbyt.dev/pixlet/render"
1414
"tidbyt.dev/pixlet/runtime"
1515
)

encode/webp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"time"
88

9-
"github.com/tidbyt/go-libwebp/webp"
9+
"github.com/ingmarstein/go-libwebp/webp"
1010
)
1111

1212
// Renders a screen to WebP. Optionally pass filters for

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module tidbyt.dev/pixlet
22

3-
go 1.23
3+
go 1.23.6
44

55
require (
66
github.com/Code-Hex/Neo-cowsay/v2 v2.0.4
@@ -17,6 +17,7 @@ require (
1717
github.com/google/tink/go v1.7.0
1818
github.com/gorilla/mux v1.8.1
1919
github.com/gorilla/websocket v1.5.3
20+
github.com/ingmarstein/go-libwebp v0.0.0-20250210064648-2a5c38d63a1b
2021
github.com/manifoldco/promptui v0.9.0
2122
github.com/mitchellh/hashstructure/v2 v2.0.2
2223
github.com/nathan-osman/go-sunrise v1.1.0
@@ -33,7 +34,6 @@ require (
3334
github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef
3435
github.com/stretchr/testify v1.10.0
3536
github.com/tidbyt/gg v0.0.0-20220808163829-95806fa1d427
36-
github.com/tidbyt/go-libwebp v0.0.0-20230922075150-fb11063b2a6a
3737
github.com/vmihailenco/msgpack/v5 v5.4.1
3838
github.com/zachomedia/go-bdf v0.0.0-20220611021443-a3af701111be
3939
go.starlark.net v0.0.0-20250205221240-492d3672b3f4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ github.com/ianlancetaylor/demangle v0.0.0-20240912202439-0a2b6291aafd/go.mod h1:
161161
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
162162
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
163163
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
164+
github.com/ingmarstein/go-libwebp v0.0.0-20250210064648-2a5c38d63a1b h1:Krdm0Ud4gdyfuac9pIJzjb2XS1uvzstuL15ShkvPsYM=
165+
github.com/ingmarstein/go-libwebp v0.0.0-20250210064648-2a5c38d63a1b/go.mod h1:IpH5jI96BLlagb2XZnNHNOh37XP6KW/aKI66kR6lU/4=
164166
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
165167
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
166168
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
@@ -305,8 +307,6 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
305307
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
306308
github.com/tidbyt/gg v0.0.0-20220808163829-95806fa1d427 h1:br5WYVw/jr4G0PZpBBx2fBAANVUrI8KKHMSs3LVqO9A=
307309
github.com/tidbyt/gg v0.0.0-20220808163829-95806fa1d427/go.mod h1:+SCm6iJHe2lfsQzlbLCsd5XsTKYSD0VqtQmWMnNs9OE=
308-
github.com/tidbyt/go-libwebp v0.0.0-20230922075150-fb11063b2a6a h1:zvAhEO3ZB7m1Lc3BwJXLTDrLrHVAbcDByJ7XkL4WR+s=
309-
github.com/tidbyt/go-libwebp v0.0.0-20230922075150-fb11063b2a6a/go.mod h1:JU6yp7mldR7lmftjHPtaDs+Q8xn7l2tMR1XYx5iJELg=
310310
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
311311
github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
312312
github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8=

render/image_webp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package render
55
import (
66
"fmt"
77

8-
"github.com/tidbyt/go-libwebp/webp"
8+
"github.com/ingmarstein/go-libwebp/webp"
99
)
1010

1111
func (p *Image) InitFromWebP(data []byte) error {

0 commit comments

Comments
 (0)