{"id":13624138,"url":"https://github.com/Jzou44/photo2pixel","last_synced_at":"2025-04-15T20:33:21.733Z","repository":{"id":49759084,"uuid":"501195034","full_name":"Jzou44/photo2pixel","owner":"Jzou44","description":"Algorithm used in photo2pixel.co to convert photo to pixel style(8-bit) art.","archived":false,"fork":false,"pushed_at":"2022-06-15T13:43:16.000Z","size":589,"stargazers_count":247,"open_issues_count":1,"forks_count":56,"subscribers_count":25,"default_branch":"main","last_synced_at":"2024-11-08T12:43:02.064Z","etag":null,"topics":["image-processing","pixel","pixel-art","pixelart","pytorch"],"latest_commit_sha":null,"homepage":"https://photo2pixel.co/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jzou44.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}},"created_at":"2022-06-08T10:03:59.000Z","updated_at":"2024-11-04T06:03:17.000Z","dependencies_parsed_at":"2022-08-30T12:51:46.413Z","dependency_job_id":null,"html_url":"https://github.com/Jzou44/photo2pixel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jzou44%2Fphoto2pixel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jzou44%2Fphoto2pixel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jzou44%2Fphoto2pixel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jzou44%2Fphoto2pixel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jzou44","download_url":"https://codeload.github.com/Jzou44/photo2pixel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249148347,"owners_count":21220519,"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":["image-processing","pixel","pixel-art","pixelart","pytorch"],"created_at":"2024-08-01T21:01:39.227Z","updated_at":"2025-04-15T20:33:21.211Z","avatar_url":"https://github.com/Jzou44.png","language":"Python","funding_links":[],"categories":["image-processing","pytorch","Python"],"sub_categories":[],"readme":"# ![LOGO](images/doc/favicon-original.png) Photo2Pixel\n\n---\nEnglish | [简体中文](./README_cn.md)\n\n[Online Tool](https://photo2pixel.co) |\n[Colab](https://colab.research.google.com/drive/108np4teybhBXHKbPMZZ1fykDuUeF2aw8?usp=sharing) |\n[Tutorial](#Tutorial)\n\nphoto2pixel is an algorithm converting photo into pixel art. There is an [online converter photo2pixel.co](https://photo2pixel.co)\n. you can try different combination of pixel size and edge threshold to get the best result.\n\n\u003cimg src=\"images/doc/mountain_8bit_style_pixel.png\" style=\"max-width: 850px\" alt=\"mountain 8bit style pixel art\"/\u003e\n\u003cimg src=\"images/doc/holy_temple_8bit_style_pixel.png\" style=\"max-width: 850px\" alt=\"holy temple 8bit style pixel art\"\u003e\n\n## Prerequisites\n- python3\n- pytorch (for algorithm implementation)\n- pillow (for image file io)\n\n## Tutorial\n---\nphoto2pixel is implemented with Pytorch, the easiest way to run it is [Colab](https://colab.research.google.com/drive/108np4teybhBXHKbPMZZ1fykDuUeF2aw8?usp=sharing),\nor you can run it with command as bellow:\n```bash\n# use default param\npython convert.py --input ./images/example_input_mountain.jpg\n\n# or use custom param\npython convert.py --kernel_size 12 --pixel_size 12 --edge_thresh 128\n```\n\n| Parameter   |                                Description                                |    Range    |               Default               |\n|-------------|:-------------------------------------------------------------------------:|:-----------:|:-----------------------------------:|\n| input       |                             input image path                              |      /      | ./images/example_input_mountain.jpg |\n| output      |                             output image path                             |      /      |            ./result.png             |\n| kernel_size |             larger kernel size means smooth color transition              |  unlimited  |                 10                  |\n| pixel_size  |                           individual pixel size                           |  unlimited  |                 16                  |\n| edge_thresh | the black line in edge region, lower edge threshold means more black line |    0~255    |                 100                 |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJzou44%2Fphoto2pixel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJzou44%2Fphoto2pixel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJzou44%2Fphoto2pixel/lists"}