{"id":27121271,"url":"https://github.com/setanarut/apng","last_synced_at":"2025-08-01T09:04:24.876Z","repository":{"id":285404474,"uuid":"958020267","full_name":"setanarut/apng","owner":"setanarut","description":"APNG encoder in Go","archived":false,"fork":false,"pushed_at":"2025-03-31T14:48:52.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-31T15:50:56.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/setanarut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2025-03-31T14:09:33.000Z","updated_at":"2025-03-31T14:47:59.000Z","dependencies_parsed_at":"2025-03-31T15:51:00.579Z","dependency_job_id":"e2130a52-de4f-4a96-aa9b-bd2b8aaa6ddd","html_url":"https://github.com/setanarut/apng","commit_stats":null,"previous_names":["setanarut/apng"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/setanarut/apng","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fapng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fapng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fapng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fapng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setanarut","download_url":"https://codeload.github.com/setanarut/apng/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fapng/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268197329,"owners_count":24211678,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-04-07T10:57:46.792Z","updated_at":"2025-08-01T09:04:24.842Z","avatar_url":"https://github.com/setanarut.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/setanarut/apng?status.svg)](https://pkg.go.dev/github.com/setanarut/apng)\n\n# apng\nFast APNG encoding with concurrent frame encoding.\n\n## Installation\n\n```sh\ngo get github.com/setanarut/apng\n```\n\n## 20 frames animation encoding benchmark\n\n| Image Size | [kettek](https://github.com/kettek/apng) | [setanarut](https://github.com/setanarut/apng) |\n| ---------- | ---------------------------------------- | ---------------------------------------------- |\n| 125x125    | 173 ms                                   | 43 ms                                          |\n| 250x250    | 655 ms                                   | 153 ms                                         |\n| 500x500    | 2542 ms                                  | 565 ms                                         |\n| 1000x1000  | 10174 ms                                 | 2213 ms                                        |\n| 2000x2000  | 40745 ms                                 | 8831 ms                                        |\n\n\u003cimg width=\"1175\" alt=\"bench\" src=\"https://github.com/user-attachments/assets/54558177-8e13-42cb-9eb0-5c00a414ef9d\" /\u003e\n\n## Example\n\n```Go\npackage main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"math/rand/v2\"\n\n\t\"github.com/setanarut/apng\"\n)\n\nfunc main() {\n\tframes := make([]image.Image, 8)\n\tfor i := range 8 {\n\t\tframes[i] = generateNoiseImage(600, 200)\n\t}\n\tapng.Save(\"out.png\", frames, 7)\n}\n\nfunc generateNoiseImage(width, height int) *image.RGBA {\n\timg := image.NewRGBA(image.Rect(0, 0, width, height))\n\tfor y := range height {\n\t\tfor x := range width {\n\t\t\tcol := noisePalette[rand.IntN(4)]\n\t\t\timg.SetRGBA(x, y, col)\n\t\t}\n\t}\n\treturn img\n}\n\nvar noisePalette = []color.RGBA{\n\t{R: 0, G: 0, B: 0, A: 255},   // Black\n\t{R: 255, G: 0, B: 0, A: 255}, // Red\n\t{R: 0, G: 255, B: 0, A: 255}, // Green\n\t{R: 0, G: 0, B: 255, A: 255}, // Blue\n}\n```\n\n![out](https://github.com/user-attachments/assets/b9c5d4f9-7479-479b-a2c3-a4642f5ccde3)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetanarut%2Fapng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetanarut%2Fapng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetanarut%2Fapng/lists"}