{"id":17268164,"url":"https://github.com/gen2brain/webp","last_synced_at":"2025-03-22T18:34:34.042Z","repository":{"id":226235461,"uuid":"768130006","full_name":"gen2brain/webp","owner":"gen2brain","description":"WebP image encoder/decoder","archived":false,"fork":false,"pushed_at":"2024-09-11T20:43:09.000Z","size":2479,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-16T08:12:40.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gen2brain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-06T14:23:01.000Z","updated_at":"2024-10-02T14:44:54.000Z","dependencies_parsed_at":"2024-09-12T05:54:13.101Z","dependency_job_id":"48e84964-badb-41ae-8049-07fd665329e1","html_url":"https://github.com/gen2brain/webp","commit_stats":null,"previous_names":["gen2brain/webp"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fwebp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fwebp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fwebp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fwebp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gen2brain","download_url":"https://codeload.github.com/gen2brain/webp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221832442,"owners_count":16888250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T08:12:40.418Z","updated_at":"2025-03-22T18:34:34.034Z","avatar_url":"https://github.com/gen2brain.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## webp\n[![Status](https://github.com/gen2brain/webp/actions/workflows/test.yml/badge.svg)](https://github.com/gen2brain/webp/actions)\n[![Go Reference](https://pkg.go.dev/badge/github.com/gen2brain/webp.svg)](https://pkg.go.dev/github.com/gen2brain/webp)\n\nGo encoder/decoder for [WebP Image File Format](https://en.wikipedia.org/wiki/WebP) with support for animated WebP images (decode only).\n\nBased on [libwebp](https://github.com/webmproject/libwebp) compiled to [WASM](https://en.wikipedia.org/wiki/WebAssembly) and used with [wazero](https://wazero.io/) runtime (CGo-free).\n\nThe library will first try to use a dynamic/shared library (if installed) via [purego](https://github.com/ebitengine/purego) and will fall back to WASM.\n\n### Build tags\n\n* `nodynamic` - do not use dynamic/shared library (use only WASM)\n\n### Benchmark\n\n```\ngoos: linux\ngoarch: amd64\npkg: github.com/gen2brain/webp\ncpu: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz\n\nBenchmarkDecodeStd-8                             157\t   7639585 ns/op\t  473683 B/op\t      13 allocs/op\nBenchmarkDecodeWasm-8                            156\t   7799653 ns/op\t 2614793 B/op\t     316 allocs/op\nBenchmarkDecodeDynamic-8                         344\t   3497863 ns/op\t  943356 B/op\t      58 allocs/op\nBenchmarkDecodeTranspiled-8 (1)                  138\t   8562133 ns/op\t 1335622 B/op\t      52 allocs/op\nBenchmarkDecodeCGo1-8 (2)                        300\t   3897300 ns/op\t 1333630 B/op\t      21 allocs/op\nBenchmarkDecodeCGo2-8 (3)                        314\t   3801195 ns/op\t 1334020 B/op\t      22 allocs/op\n\nBenchmarkEncodeWasm-8                             12\t  96123599 ns/op\t 4857356 B/op\t     298 allocs/op\nBenchmarkEncodeDynamic-8                          55\t  19022243 ns/op\t   19888 B/op\t      42 allocs/op\nBenchmarkEncodeTranspiled-8 (1)                   18\t  60042805 ns/op\t   76104 B/op\t      36 allocs/op\nBenchmarkEncodeCGo1-8 (2)                         31\t  32538122 ns/op\t 3213497 B/op\t  524294 allocs/op\nBenchmarkEncodeCGo2-8 (3)                         52\t  22482704 ns/op\t   26043 B/op\t       5 allocs/op\n```\n\n- `(1)` [git.sr.ht/~jackmordaunt/go-libwebp](https://git.sr.ht/~jackmordaunt/go-libwebp)\n- `(2)` [github.com/chai2010/webp](https://github.com/chai2010/webp)\n- `(3)` [github.com/kolesa-team/go-webp](https://github.com/kolesa-team/go-webp)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgen2brain%2Fwebp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgen2brain%2Fwebp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgen2brain%2Fwebp/lists"}