{"id":30891212,"url":"https://github.com/thaisonho/img2rgb565","last_synced_at":"2026-05-02T23:43:33.682Z","repository":{"id":310348899,"uuid":"1039526151","full_name":"thaisonho/img2rgb565","owner":"thaisonho","description":"A image to RGB565 converter in Python.","archived":false,"fork":false,"pushed_at":"2025-08-17T13:10:34.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-17T15:10:35.956Z","etag":null,"topics":["arduino","esp32","rgb565","st7735"],"latest_commit_sha":null,"homepage":"","language":"Python","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/thaisonho.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,"zenodo":null}},"created_at":"2025-08-17T12:35:41.000Z","updated_at":"2025-08-17T13:13:22.000Z","dependencies_parsed_at":"2025-08-17T15:10:50.469Z","dependency_job_id":"6030050f-0cc5-4088-be00-fad4cea97cbf","html_url":"https://github.com/thaisonho/img2rgb565","commit_stats":null,"previous_names":["thaisonho/img2rgb565"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/thaisonho/img2rgb565","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thaisonho%2Fimg2rgb565","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thaisonho%2Fimg2rgb565/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thaisonho%2Fimg2rgb565/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thaisonho%2Fimg2rgb565/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thaisonho","download_url":"https://codeload.github.com/thaisonho/img2rgb565/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thaisonho%2Fimg2rgb565/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274225674,"owners_count":25244560,"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-09-08T02:00:09.813Z","response_time":121,"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":["arduino","esp32","rgb565","st7735"],"created_at":"2025-09-08T18:04:26.643Z","updated_at":"2026-05-02T23:43:33.652Z","avatar_url":"https://github.com/thaisonho.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# img2rgb565\n\nA simple Python tool to convert images to RGB565 format for use with embedded displays (e.g., ST7735) and generate either Arduino C arrays or raw binary files.\n\n## Features\n- Convert images to RGB565 format\n- Output as Arduino C array or raw binary file\n- Optional image resizing\n\n## Requirements\n- Python 3.8+\n- [Pillow](https://pypi.org/project/Pillow/)\n- [NumPy](https://pypi.org/project/numpy/)\n\nInstall dependencies:\n```bash\npip install -r requiremenst.txt\n```\n\n## Usage\n\n```bash\npython img2rgb565.py \u003cinput_image\u003e [--output \u003coutput_file\u003e] [--resize WIDTH HEIGHT] [--name VAR_NAME]\n```\n\n- `\u003cinput_image\u003e`: Path to the input image file (e.g., PNG, JPG).\n- `--output`, `-o`: Output binary file (e.g., `image.bin`). If omitted, Arduino code is printed to stdout.\n- `--resize WIDTH HEIGHT`: Resize the image to the specified dimensions before conversion.\n- `--name VAR_NAME`: Variable name for the Arduino array (default: `my_image`).\n\n## Examples\n\n**Generate Arduino C array:**\n```bash\npython img2rgb565.py mypic.png --resize 128 160 --name mypic\n```\n\n**Generate binary file:**\n```bash\npython img2rgb565.py mypic.png --resize 128 160 --output mypic.bin\n```\n\n## Output\n- **Arduino C array:** Prints a `const uint16_t` array and image dimensions for direct use in Arduino sketches.\n- **Binary file:** Creates a `.bin` file with RGB565 data (big-endian) for direct upload to embedded devices.\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthaisonho%2Fimg2rgb565","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthaisonho%2Fimg2rgb565","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthaisonho%2Fimg2rgb565/lists"}