{"id":13710395,"url":"https://github.com/neilpa/go-stbi","last_synced_at":"2025-04-12T20:01:43.397Z","repository":{"id":66602307,"uuid":"226578907","full_name":"neilpa/go-stbi","owner":"neilpa","description":"Go binding for stb_image.h","archived":false,"fork":false,"pushed_at":"2020-03-24T00:07:45.000Z","size":89,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T14:11:49.883Z","etag":null,"topics":["bmp","go","golang","image-processing","jpeg","png","stb-image"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neilpa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-12-07T21:34:12.000Z","updated_at":"2024-10-11T18:26:08.000Z","dependencies_parsed_at":"2024-05-13T00:06:23.849Z","dependency_job_id":"3fbefc8c-6c7c-456e-baf5-2ec4256110d4","html_url":"https://github.com/neilpa/go-stbi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fgo-stbi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fgo-stbi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fgo-stbi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fgo-stbi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neilpa","download_url":"https://codeload.github.com/neilpa/go-stbi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625499,"owners_count":21135513,"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":["bmp","go","golang","image-processing","jpeg","png","stb-image"],"created_at":"2024-08-02T23:00:55.472Z","updated_at":"2025-04-12T20:01:43.368Z","avatar_url":"https://github.com/neilpa.png","language":"C","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# go-stbi\n\n[![CI](https://github.com/neilpa/go-stbi/workflows/CI/badge.svg)](https://github.com/neilpa/go-stbi/actions/)\n[![GoDoc](https://godoc.org/neilpa.me/go-stbi?status.svg)](https://godoc.org/neilpa.me/go-stbi)\n\nGo binding for [stb_image.h][].\n\n## Usage\n\nLoad an `image.RGBA` from some path on disk.\n\n```go\nimport \"neilpa.me/go-stbi\"\n\nimage, err := stbi.Load(\"path/to/image.jpeg\")\n// ...\n```\n\nThere are also format specific sub-packages that register decoders for use\nwith the standard `image.Decode` and `image.DecodeConfig` methods.\n\n```go\nimport (\n    \"image\"\n\n    _ \"neilpa.me/go-stbi/bmp\"\n    _ \"neilpa.me/go-stbi/gif\"\n    _ \"neilpa.me/go-stbi/jpeg\"\n    _ \"neilpa.me/go-stbi/png\"\n)\n\nbmp, _, err := image.Decode(\"path/to/image.bmp\")\ngif, _, err := image.Decode(\"path/to/image.gif\")\njpg, _, err := image.Decode(\"path/to/image.jpg\")\npng, _, err := image.Decode(\"path/to/image.png\")\n// ...\n```\n\n## Licence\n\nThis code is released into the public domain.\n\n[stb_image.h]: https://github.com/nothings/stb/blob/f67165c2bb2af3060ecae7d20d6f731173485ad0/stb_image.h\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneilpa%2Fgo-stbi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneilpa%2Fgo-stbi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneilpa%2Fgo-stbi/lists"}