{"id":19938287,"url":"https://github.com/2kabhishek/pgm-resize","last_synced_at":"2026-05-30T23:31:06.542Z","repository":{"id":50262425,"uuid":"511149636","full_name":"2KAbhishek/pgm-resize","owner":"2KAbhishek","description":"For your PGM resizng needs 🖼⚒️","archived":false,"fork":false,"pushed_at":"2023-02-16T07:36:23.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T12:48:16.164Z","etag":null,"topics":["c","cli","image-processing","pgm","resize","tool"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2KAbhishek.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},"funding":{"github":"2kabhishek"}},"created_at":"2022-07-06T13:31:37.000Z","updated_at":"2022-07-08T19:31:49.000Z","dependencies_parsed_at":"2025-03-01T12:41:54.256Z","dependency_job_id":"21d5df5d-8723-4280-b85e-780025d538a6","html_url":"https://github.com/2KAbhishek/pgm-resize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"2KAbhishek/bare-minimum","purl":"pkg:github/2KAbhishek/pgm-resize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Fpgm-resize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Fpgm-resize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Fpgm-resize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Fpgm-resize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2KAbhishek","download_url":"https://codeload.github.com/2KAbhishek/pgm-resize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Fpgm-resize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33714033,"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-05-30T02:00:06.278Z","response_time":92,"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":["c","cli","image-processing","pgm","resize","tool"],"created_at":"2024-11-12T23:39:05.672Z","updated_at":"2026-05-30T23:31:06.521Z","avatar_url":"https://github.com/2KAbhishek.png","language":"C","funding_links":["https://github.com/sponsors/2kabhishek"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align = \"center\"\u003e\n\n\u003ch1\u003e\u003ca href=\"https://2kabhishek.github.io/pgm-resize\"\u003ePGM-Resize\u003c/a\u003e\u003c/h1\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/PGM-Resize/blob/main/LICENSE\"\u003e\n\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/2kabhishek/PGM-Resize?style=flat\u0026color=eee\u0026label=\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/PGM-Resize/graphs/contributors\"\u003e\n\u003cimg alt=\"People\" src=\"https://img.shields.io/github/contributors/2kabhishek/PGM-Resize?style=flat\u0026color=ffaaf2\u0026label=People\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/PGM-Resize/stargazers\"\u003e\n\u003cimg alt=\"Stars\" src=\"https://img.shields.io/github/stars/2kabhishek/PGM-Resize?style=flat\u0026color=98c379\u0026label=Stars\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/PGM-Resize/network/members\"\u003e\n\u003cimg alt=\"Forks\" src=\"https://img.shields.io/github/forks/2kabhishek/PGM-Resize?style=flat\u0026color=66a8e0\u0026label=Forks\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/PGM-Resize/watchers\"\u003e\n\u003cimg alt=\"Watches\" src=\"https://img.shields.io/github/watchers/2kabhishek/PGM-Resize?style=flat\u0026color=f5d08b\u0026label=Watches\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/PGM-Resize/pulse\"\u003e\n\u003cimg alt=\"Last Updated\" src=\"https://img.shields.io/github/last-commit/2kabhishek/PGM-Resize?style=flat\u0026color=e06c75\u0026label=\"\u003e \u003c/a\u003e\n\n\u003ch3\u003eFor your PGM resizng needs 🖼⚒️\u003c/h3\u003e\n\n\u003c/div\u003e\n\n## What is this\n\npgm-resize is a tool that allows you to quickly resize [.pgm](http://davis.lbl.gov/Manuals/NETPBM/doc/pgm.html) images.\n\n## Inspiration\n\nNeeded a thumbnail generator for PGM(P2 type) images, all available tools were resizing it to P5 type, then decided to make this.\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- You have installed the latest version of `gcc`\n\n## Getting pgm-resize\n\nTo get pgm-resize, follow these steps:\n\n```bash\ngit clone https://github.com/2kabhishek/pgm-resize\ncd pgm-resize\nmake\n```\n\n## Using pgm-resize\n\n```bash\nUSAGE:\n    pgm-resize path/to/image.pgm [WIDTH]\n\nOPTIONS:\n    WIDTH - Provide a custom output image width\n            Height is proportionately adjusted\n            (Halves original image width by default)\n\nOUTPUT:\n    The resized image will be placed in he same path\n    as the original image with a '-resize' added\n\nExample:\n\n./pgm-resize images/apollonian.pgm 240\n# output: images/apollonian-resize.pgm with 240 width\n./pgm-resize images/venus.pgm\n# output: images/venus-resizw.pgm with width halved\n```\n\nFor alternate implementation with pipe operations, see [alt branch](https://github.com/2kabhishek/pgm-resize/tree/alt).\n\n## How it was built\n\npgm-resize was built using `neovim`, 'gcc', 'make'\n\n## Challenges faced\n\nFaced some segfaults, `gcc -g` and `gdb` came to rescue\n\n## What I learned\n\n- Learned about the `.pgm` image format\n- Worked with file IO in c\n- Did some math tricks for resizing the images\n  (Used mean to combine multiple pixels into one)\n\nHit the ⭐ button if you found this useful.\n\n## More Info\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/pgm-resize\"\u003eSource\u003c/a\u003e | \u003ca href=\"https://2kabhishek.github.io/pgm-resize\"\u003eWebsite\u003c/a\u003e\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2kabhishek%2Fpgm-resize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2kabhishek%2Fpgm-resize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2kabhishek%2Fpgm-resize/lists"}