{"id":13413190,"url":"https://github.com/kolesa-team/go-webp","last_synced_at":"2026-02-17T20:06:23.028Z","repository":{"id":47686121,"uuid":"241326193","full_name":"kolesa-team/go-webp","owner":"kolesa-team","description":"Simple and fast webp library for golang","archived":false,"fork":false,"pushed_at":"2026-01-24T15:22:43.000Z","size":777,"stargazers_count":294,"open_issues_count":7,"forks_count":39,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-01-25T04:35:41.710Z","etag":null,"topics":["decoding","encoding","go","golang","libwebp","webp"],"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/kolesa-team.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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-02-18T09:53:07.000Z","updated_at":"2026-01-24T15:22:47.000Z","dependencies_parsed_at":"2024-01-08T15:34:36.922Z","dependency_job_id":null,"html_url":"https://github.com/kolesa-team/go-webp","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/kolesa-team/go-webp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolesa-team%2Fgo-webp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolesa-team%2Fgo-webp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolesa-team%2Fgo-webp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolesa-team%2Fgo-webp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kolesa-team","download_url":"https://codeload.github.com/kolesa-team/go-webp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolesa-team%2Fgo-webp/sbom","scorecard":{"id":566333,"data":{"date":"2025-08-11","repo":{"name":"github.com/kolesa-team/go-webp","commit":"67e9388651d7baba828f314c2925c0166176b7f5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":4,"reason":"Found 7/15 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T15:04:30.802Z","repository_id":47686121,"created_at":"2025-08-20T15:04:30.802Z","updated_at":"2025-08-20T15:04:30.802Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29556415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T18:16:07.221Z","status":"ssl_error","status_checked_at":"2026-02-17T18:16:04.782Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["decoding","encoding","go","golang","libwebp","webp"],"created_at":"2024-07-30T20:01:34.766Z","updated_at":"2026-02-17T20:06:18.018Z","avatar_url":"https://github.com/kolesa-team.png","language":"Go","funding_links":[],"categories":["Images","图片","Go","Relational Databases"],"sub_categories":["Search and Analytic Databases","检索及分析资料库","Advanced Console UIs"],"readme":"![logo](test_data/images/logo.jpg)\n# go-webp\n[![Build Status](https://api.travis-ci.com/kolesa-team/go-webp.svg?branch=master)](https://travis-ci.com/github/kolesa-team/go-webp)\n[![GoDoc](https://godoc.org/github.com/kolesa-team/go-webp?status.svg)](https://godoc.org/github.com/kolesa-team/go-webp)\n[![Go Report](https://goreportcard.com/badge/github.com/kolesa-team/go-webp)](https://goreportcard.com/report/github.com/kolesa-team/go-webp)\n[![codecov](https://codecov.io/gh/kolesa-team/go-webp/branch/master/graph/badge.svg)](https://codecov.io/gh/kolesa-team/go-webp)\n\nGolang Webp library for encoding and decoding, using **C** binding for Google libwebp\n\n## Requirements\n[libwebp](https://developers.google.com/speed/webp/docs/api)\n\n## Benchmarks\n```text\n% go test -bench \"^BenchmarkDecode\" ./webp                                                                                \ngoos: darwin\ngoarch: amd64\npkg: github.com/kolesa-team/go-webp/webp\nBenchmarkDecodeLossy-12                       45          25965139 ns/op\nBenchmarkDecodeXImageLossy-12                 13          90735879 ns/op\nBenchmarkDecodeLossless-12                    64          18887482 ns/op\nBenchmarkDecodeXImageLossless-12              27          42422596 ns/op\nPASS\nok      github.com/kolesa-team/go-webp/webp     7.877s\n```\n\n## Install libwebp\n#### MacOS:\n```bash\nbrew install webp\n```\n#### Linux:\n```bash\nsudo apt-get update\nsudo apt-get install libwebp-dev\n```\n\n## Install\n`go get -u github.com/kolesa-team/go-webp`\n\n## Examples\n\n#### Decode:\n```go\npackage main\n\nimport (\n\t\"image/jpeg\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/kolesa-team/go-webp/decoder\"\n\t\"github.com/kolesa-team/go-webp/webp\"\n)\n\nfunc main() {\n\tfile, err := os.Open(\"test_data/images/m4_q75.webp\")\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\toutput, err := os.Create(\"example/output_decode.jpg\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer output.Close()\n\n\timg, err := webp.Decode(file, \u0026decoder.Options{})\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\tif err = jpeg.Encode(output, img, \u0026jpeg.Options{Quality:75}); err != nil {\n\t\tlog.Fatalln(err)\n\t}\n}\n```\n\n```bash\ngo run example/decode/main.go\n```\n\n#### Encode\n```go\npackage main\n\nimport (\n\t\"github.com/kolesa-team/go-webp/encoder\"\n\t\"github.com/kolesa-team/go-webp/webp\"\n\t\"image/jpeg\"\n\t\"log\"\n\t\"os\"\n)\n\nfunc main() {\n\tfile, err := os.Open(\"test_data/images/source.jpg\")\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\timg, err := jpeg.Decode(file)\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\toutput, err := os.Create(\"example/output_decode.webp\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer output.Close()\n\n\toptions, err := encoder.NewLossyEncoderOptions(encoder.PresetDefault, 75)\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\tif err := webp.Encode(output, img, options); err != nil {\n\t\tlog.Fatalln(err)\n\t}\n}\n```\n```bash\ngo run example/encode/main.go\n```\n\n## TODO\n- return aux stats\n- container api\n- incremental decoding\n\n## License\nMIT licensed. See the LICENSE file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkolesa-team%2Fgo-webp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkolesa-team%2Fgo-webp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkolesa-team%2Fgo-webp/lists"}