{"id":16104749,"url":"https://github.com/sergeymakinen/go-bmp","last_synced_at":"2025-03-18T08:31:30.257Z","repository":{"id":57639618,"uuid":"432487620","full_name":"sergeymakinen/go-bmp","owner":"sergeymakinen","description":"BMP image decoder and encoder","archived":false,"fork":false,"pushed_at":"2023-12-17T09:39:24.000Z","size":101,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T06:52:37.635Z","etag":null,"topics":["bitmap","bmp","decoder","encoder","go","golang","rle"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergeymakinen.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":"2021-11-27T14:48:55.000Z","updated_at":"2024-12-01T15:52:35.000Z","dependencies_parsed_at":"2024-06-19T13:33:08.962Z","dependency_job_id":null,"html_url":"https://github.com/sergeymakinen/go-bmp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeymakinen%2Fgo-bmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeymakinen%2Fgo-bmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeymakinen%2Fgo-bmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeymakinen%2Fgo-bmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergeymakinen","download_url":"https://codeload.github.com/sergeymakinen/go-bmp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910750,"owners_count":20367545,"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":["bitmap","bmp","decoder","encoder","go","golang","rle"],"created_at":"2024-10-09T19:06:10.982Z","updated_at":"2025-03-18T08:31:29.358Z","avatar_url":"https://github.com/sergeymakinen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bmp\n\n[![tests](https://github.com/sergeymakinen/go-bmp/workflows/tests/badge.svg)](https://github.com/sergeymakinen/go-bmp/actions?query=workflow%3Atests)\n[![Go Reference](https://pkg.go.dev/badge/github.com/sergeymakinen/go-bmp.svg)](https://pkg.go.dev/github.com/sergeymakinen/go-bmp)\n[![Go Report Card](https://goreportcard.com/badge/github.com/sergeymakinen/go-bmp)](https://goreportcard.com/report/github.com/sergeymakinen/go-bmp)\n[![codecov](https://codecov.io/gh/sergeymakinen/go-bmp/branch/main/graph/badge.svg)](https://codecov.io/gh/sergeymakinen/go-bmp)\n\nPackage bmp implements a BMP image decoder and encoder.\n\nThe BMP specification is at http://www.digicamsoft.com/bmp/bmp.html.\n\n## Supported BMP features\n\n* 1, 2, 4, 8, 16, 24 and 32 bits per pixel\n* Top-down images (read-only)\n* RLE compression for 4 and 8 BPP images (read-only)\n* RGB555 and RGB565 types for 16 BPP images (read-only)\n\n## Installation\n\nUse go get:\n\n```bash\ngo get github.com/sergeymakinen/go-bmp\n```\n\nThen import the package into your own code:\n\n```go\nimport \"github.com/sergeymakinen/go-bmp\"\n```\n\n\n## Example\n\n```go\nf, _ := os.Open(\"file.bmp\")\nimg, _ := bmp.Decode(f)\nfor i := 10; i \u003c 20; i++ {\n    img.(draw.Image).Set(i, i, color.NRGBA{\n        R: 255,\n        G: 0,\n        B: 0,\n        A: 255,\n    })\n}\nf.Truncate(0)\nbmp.Encode(f, img)\nf.Close()\n```\n\n## License\n\nBSD 3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeymakinen%2Fgo-bmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergeymakinen%2Fgo-bmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeymakinen%2Fgo-bmp/lists"}