{"id":50587043,"url":"https://github.com/coloz/image-to-bitmap-array","last_synced_at":"2026-06-05T07:02:26.607Z","repository":{"id":30745568,"uuid":"117707928","full_name":"coloz/image-to-bitmap-array","owner":"coloz","description":"convert image to C bitmap array | 一个Angular编写的纯前端的图片取模程序","archived":false,"fork":false,"pushed_at":"2023-05-24T00:47:21.000Z","size":4312,"stargazers_count":223,"open_issues_count":5,"forks_count":50,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-15T05:54:51.898Z","etag":null,"topics":["angular","arduino","bitmap-array","image-convert","u8g2"],"latest_commit_sha":null,"homepage":"https://arduino.me/a/image-to-bitmap-array","language":"TypeScript","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/coloz.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}},"created_at":"2018-01-16T16:15:50.000Z","updated_at":"2024-04-14T09:29:31.000Z","dependencies_parsed_at":"2023-01-14T17:35:54.347Z","dependency_job_id":null,"html_url":"https://github.com/coloz/image-to-bitmap-array","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coloz/image-to-bitmap-array","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coloz%2Fimage-to-bitmap-array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coloz%2Fimage-to-bitmap-array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coloz%2Fimage-to-bitmap-array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coloz%2Fimage-to-bitmap-array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coloz","download_url":"https://codeload.github.com/coloz/image-to-bitmap-array/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coloz%2Fimage-to-bitmap-array/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33932048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"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":["angular","arduino","bitmap-array","image-convert","u8g2"],"created_at":"2026-06-05T07:02:25.918Z","updated_at":"2026-06-05T07:02:26.599Z","avatar_url":"https://github.com/coloz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# convert image to C bitmap array  \n一个纯前端的图片取模程序，可将图片转换为C语言数组形式，用于单片机/arduino显示图片。\n\n## 演示地址  \n[1602/2004 LCD 在线字符编辑器](https://arduino.me/a/1602-character-editor)  \n[OLED/LCD/12864 在线图片取模工具](https://arduino.me/a/image-to-bitmap-array)  \n\n## 设备端使用  \n推荐使用 [u8g2](https://github.com/olikraus/u8g2) 配合本软件进行图片显示  \n[基于Arduino的演示](https://www.arduino.cn/thread-42174-1-1.html)  \n\n## 抖动取模  \n利用 [Floyd-Steinberg-Dither](https://en.wikipedia.org/wiki/Floyd–Steinberg_dithering) 进行取模，可以将灰度转换成点密度。  \n\n| 原图                    | 阀值取模                | 抖动取模                |\n| ----------------------- | ----------------------- | ----------------------- |\n| ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/k1.png?raw=true)  | ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/k2.png?raw=true)  | ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/k3.png?raw=true)  |\n| ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/b1.png?raw=true)  | ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/b2.png?raw=true)  | ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/b3.png?raw=true)  |\n| ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/lm1.png?raw=true) | ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/lm2.png?raw=true) | ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/lm3.png?raw=true) |\n| ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/qy1.png?raw=true) | ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/qy2.png?raw=true) | ![](https://github.com/coloz/image-to-bitmap-array/blob/master/src/assets/qy3.png?raw=true) |\n\n抖动取模代码来自项目[canvas-floyd-steinberg-dither](https://github.com/tgiachett/canvas-floyd-steinberg-dither)  \n\n## 更新  \n2017.2.8  取模软件好多，选择困难症又犯了，为了自救，所以自己做了个  \n2020.4.28  这个小软件意外受欢迎，那我再更新下吧  \n2020.5.1 新增抖动取模功能  \n\n## 编译  \n```\nnpm i\nng build --prod\n```\n\n## 在线乞讨  \n觉得不错，就请star一下  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoloz%2Fimage-to-bitmap-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoloz%2Fimage-to-bitmap-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoloz%2Fimage-to-bitmap-array/lists"}