You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,14 @@
1
1
# avif-go
2
2
3
-
A Go library and CLI tool to encode/decode AVIF images without system dependencies (CGO).
3
+
A Go library & CLI tool to encode/decode static and animated AVIF without external dependencies.
4
4
5
5
## 💡 Motivation
6
6
7
7
There are a couple of libraries to encode/decode AVIF images in Go, and even though they do the job well, they have some limitations that don't satisfy my needs:
8
8
9
9
- They need dependencies to be installed on the system to either build the app or later execute it.
10
10
- They rely on a WASM runtime - which is actually a really smart idea! - but it has a big impact on performance.
11
+
- There's currently no Go library capable of encoding animated AVIFs; this library aims to fill that gap.
11
12
12
13
**avif-go** uses CGO to create a static implementation of AVIF, so you don't need `libavif` (or any of its sub-dependencies) installed to build or run your Go application.
13
14
@@ -51,8 +52,8 @@ err = avif.Encode(avifFile, originalImage, nil) // encode the image & save it to
51
52
52
53
```go
53
54
varframes []image.Image = ... // a slice of image.Image frames
54
-
avifFile, err:= os.Create("/path/to/animation.avif") // create the file to save the animated AVIF
0 commit comments