{"id":24564760,"url":"https://github.com/abzico/colorrectdump","last_synced_at":"2025-03-17T01:44:21.242Z","repository":{"id":144085007,"uuid":"185970858","full_name":"abzico/colorrectdump","owner":"abzico","description":"A tool to find rectangular area for color pixels that live in the input .png image","archived":false,"fork":false,"pushed_at":"2019-05-11T11:25:11.000Z","size":43,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T11:34:46.042Z","etag":null,"topics":["c","cli","image-processing","images","png"],"latest_commit_sha":null,"homepage":null,"language":"C","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/abzico.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}},"created_at":"2019-05-10T10:42:24.000Z","updated_at":"2022-04-25T13:38:11.000Z","dependencies_parsed_at":"2023-05-26T09:31:01.811Z","dependency_job_id":null,"html_url":"https://github.com/abzico/colorrectdump","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/abzico%2Fcolorrectdump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abzico%2Fcolorrectdump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abzico%2Fcolorrectdump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abzico%2Fcolorrectdump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abzico","download_url":"https://codeload.github.com/abzico/colorrectdump/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960443,"owners_count":20375101,"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":["c","cli","image-processing","images","png"],"created_at":"2025-01-23T11:29:28.092Z","updated_at":"2025-03-17T01:44:21.226Z","avatar_url":"https://github.com/abzico.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# colorrectdump\n\nA tool to find rectangular area for color pixels that live in the input .png image.\n\n# Build\n\nDepends on [libpng](http://www.libpng.org/pub/png/libpng.html), so install it first.\n\n* `./autogen.sh`\n* `./configure`\n* `make -j4`\n* `sudo make install`\n\n# Usage\n\n`colorrectdump input-image-filepath|--help|--version`\n\nExample:\n\n`colorrectdump /path/to/my/image.png`\n\nit will print out result with 4 numbers onto starndard output in format `x-min y-min x-max y-max` in which `x-min` and `y-min` are the top left corner of the rectangular area. You can further use batch/bash script to do batch process from this output on top.\n\nExample output:\n\n`114 144 269 227`\n\nthis means\n\n* `x-min` is 114\n* `y-min` is 144\n* `x-max` is 269\n* `y-max` is 227\n\nyou can further calculate width/height from `x-max`-`x-min`, and `y-max`-`y-min` respectively.\n\n# NOTE\n\nCurrently it works only with RGBA .png file format that has transparent pixels. If you input opaque image like grayscale, or RGB format, the output is not defined as well as its behavior. This feature will be considered to add later.\n\n# LICENSE\n\n[MIT](https://github.com/abzico/colorrectdump/blob/master/LICENSE), [Angry Baozi](https://abzi.co)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabzico%2Fcolorrectdump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabzico%2Fcolorrectdump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabzico%2Fcolorrectdump/lists"}