]> git.maquefel.me Git - brevno-suite/hugo/commit
Decode webp.ImageConfig natively
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 13 Jan 2026 11:28:47 +0000 (12:28 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 13 Jan 2026 16:58:34 +0000 (17:58 +0100)
commitd36a8f5601258d80b7cc29cce093f5e7c7ac3528
tree33e92c6a7d3f62117465b02abee97e92789ddd1b
parent487b8e3af3cfe583e4c369b0bc72135e01b058df
Decode webp.ImageConfig natively

This has 2 main benefits:

1. When you only need width/height, we don't need to spin up a WASM runtime.
2. When all processed images are cached in the file cache, we don't need to spin up a WASM runtime.

The above is only really visible for smaller sites, but it's annoying to potentially have a site building in 15ms take e.g. 200ms because of WASM startup time.

Fixes #14371
go.mod
go.sum
resources/images/codec.go
resources/images/exif/exif.go