{"id":24275692,"url":"https://github.com/silasberger/netpbm-converter","last_synced_at":"2026-04-20T14:32:14.322Z","repository":{"id":224330520,"uuid":"763012576","full_name":"SilasBerger/netpbm-converter","owner":"SilasBerger","description":"A command-line utility for converting images to Netpbm.","archived":false,"fork":false,"pushed_at":"2024-02-25T11:24:30.000Z","size":252,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T09:27:22.431Z","etag":null,"topics":["computer-science-education","education","encoding","image-encoder","image-encoding","informatikunterricht","netpbm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SilasBerger.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}},"created_at":"2024-02-25T10:23:54.000Z","updated_at":"2024-02-25T17:19:23.000Z","dependencies_parsed_at":"2024-02-25T11:29:19.538Z","dependency_job_id":"f39ac32f-6a4c-4c53-8baa-042f20c58511","html_url":"https://github.com/SilasBerger/netpbm-converter","commit_stats":null,"previous_names":["silasberger/netpbm-converter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SilasBerger/netpbm-converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SilasBerger%2Fnetpbm-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SilasBerger%2Fnetpbm-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SilasBerger%2Fnetpbm-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SilasBerger%2Fnetpbm-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SilasBerger","download_url":"https://codeload.github.com/SilasBerger/netpbm-converter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SilasBerger%2Fnetpbm-converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32050898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["computer-science-education","education","encoding","image-encoder","image-encoding","informatikunterricht","netpbm"],"created_at":"2025-01-15T21:43:54.651Z","updated_at":"2026-04-20T14:32:14.300Z","avatar_url":"https://github.com/SilasBerger.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Netpbm Converter\nA command-line utility for converting images to Netpbm.\n\n## Usage\n### Initial setup\n```sh\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n### Converting an image\nCommand format: `convert.py \u003cmagic_number\u003e \u003cinput_path\u003e`\n\n**Usage examples:**\n```sh\npython convert.py P1 ./example_data/images/cat.jpg # creates ./example_data/images/cat.pbm (black \u0026 white)\npython convert.py P2 ./example_data/images/dog.jpg # creates ./example_data/images/dog.pgm (grayscale)\npython convert.py P3 ./example_data/images/capibara.jpg # creates ./example_data/images/capibara.ppm (full RGB)\n```\n\n## Features\n### Supported Netpbm formats\n| Type             | Magic number | Extension | Colors                |\n|------------------|--------------|-----------|-----------------------|\n| Portable BitMap  | `P1` (ASCII) | `.pbm`    | 0-1 (black \u0026 white)   |\n| Portable GrayMap | `P2` (ASCII) | `.pgm`    | 0-255 (grayscale)     |\n| Portable PixMap  | `P3` (ASCII) | `.ppm`    | 0-255 per RGB channel |\n\n### Limitations\n- No support for magic numbers `P4` - `P6` (raw binary)\n- No support for multibyte GrayMap\n\n## Useful links\n- [Netpbm (Wikipedia)](https://en.wikipedia.org/wiki/Netpbm)\n\n## Image sources\n- `cat.jpg`: \u003ca href=\"https://pixabay.com/de/users/jaclou-dl-5602247/?utm_source=link-attribution\u0026utm_medium=referral\u0026utm_campaign=image\u0026utm_content=5098930\"\u003eJackieLou DL\u003c/a\u003e on \u003ca href=\"https://pixabay.com/de//?utm_source=link-attribution\u0026utm_medium=referral\u0026utm_campaign=image\u0026utm_content=5098930\"\u003ePixabay\u003c/a\u003e\n- `dog.jpg`: \u003ca href=\"https://pixabay.com/de/users/picsbyfran-6087762/?utm_source=link-attribution\u0026utm_medium=referral\u0026utm_campaign=image\u0026utm_content=2785074\"\u003eFran • @mallorcadogphotography\u003c/a\u003e on \u003ca href=\"https://pixabay.com/de//?utm_source=link-attribution\u0026utm_medium=referral\u0026utm_campaign=image\u0026utm_content=2785074\"\u003ePixabay\u003c/a\u003e\n- `capibara.jpg`: \u003ca href=\"https://pixabay.com/de/users/chacha8080-11915634/?utm_source=link-attribution\u0026utm_medium=referral\u0026utm_campaign=image\u0026utm_content=5255073\"\u003eMasakazu Kobayashi\u003c/a\u003e on \u003ca href=\"https://pixabay.com/de//?utm_source=link-attribution\u0026utm_medium=referral\u0026utm_campaign=image\u0026utm_content=5255073\"\u003ePixabay\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilasberger%2Fnetpbm-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilasberger%2Fnetpbm-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilasberger%2Fnetpbm-converter/lists"}