{"id":25905343,"url":"https://github.com/werctfourth/python-border-autocrop2","last_synced_at":"2025-07-31T19:06:26.582Z","repository":{"id":279925113,"uuid":"940456997","full_name":"WerctFourth/python-border-autocrop2","owner":"WerctFourth","description":"Python script that crops borders from images v2","archived":false,"fork":false,"pushed_at":"2025-02-28T08:14:50.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T15:02:28.374Z","etag":null,"topics":["border","crop","image-processing","libvips","numba","numpy","python","python3"],"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/WerctFourth.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":"2025-02-28T07:56:46.000Z","updated_at":"2025-02-28T08:24:34.000Z","dependencies_parsed_at":"2025-02-28T15:02:54.140Z","dependency_job_id":"2ef9add6-9ab7-4faa-adb6-f1f7e898bb75","html_url":"https://github.com/WerctFourth/python-border-autocrop2","commit_stats":null,"previous_names":["werctfourth/python-border-autocrop2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WerctFourth%2Fpython-border-autocrop2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WerctFourth%2Fpython-border-autocrop2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WerctFourth%2Fpython-border-autocrop2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WerctFourth%2Fpython-border-autocrop2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WerctFourth","download_url":"https://codeload.github.com/WerctFourth/python-border-autocrop2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241610990,"owners_count":19990508,"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":["border","crop","image-processing","libvips","numba","numpy","python","python3"],"created_at":"2025-03-03T05:14:53.304Z","updated_at":"2025-07-31T19:06:26.565Z","avatar_url":"https://github.com/WerctFourth.png","language":"Python","readme":"# Description\n\nPython script for cropping clear borders of any color in images with some degree of noise tolerance.\n\nMore information is available in [previous version's readme](https://github.com/WerctFourth/python-border-autocrop)\n\n# Differences\n\n* Uses pyvips/libvips instead of Pillow for 16-bit/band and more format support\n* Resizes images using Magic Kernel Sharp (a=6, v=7), Numpy + Numba resizer implementation\n* Detects grayscale images saved as RGB and converts them back to grayscale (pyvips + numpy implementation)\n* Saves 16-bit/band images after resizing (8-bit input images without resizing will be saved as 8-bit)\n* Settings are saved in JSON with an ability to load custom settings files\n* Can save and load job JSONs with custom settings for any file\n* Saves to PNG (up to 16 bit), JXL (internal libvips, up to 16 bit), AVIF (still external, because internal ilbvips encoder doesn't support 8+ bit images; up to 12 bit)\n* Option to ignore already vertically cropped space in horizontal crop\n\n# Requirements\nPython, [pyvips](https://pypi.org/project/pyvips/), [numpy](https://pypi.org/project/numpy/), [numba](https://pypi.org/project/numba/). \n\nOptional: [pyvips-binary](https://pypi.org/project/pyvips-binary/) (Makes calls to libvips faster)\n\nTested on Python 3.13.1, pyvips 3.0.0, pyvips-binary 8.16.1, Numpy 2.2.5, Numba 0.61.2.\n\nRequires external native [libvips library](https://github.com/libvips/libvips/releases).\n\n# Resources\n\n* [Magic Kernel official site](https://johncostella.com/magic/)\n* [Magic Kernel Rust implementation](https://lib.rs/crates/magic-kernel)\n* [pica JS resizer](https://github.com/nodeca/pica)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwerctfourth%2Fpython-border-autocrop2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwerctfourth%2Fpython-border-autocrop2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwerctfourth%2Fpython-border-autocrop2/lists"}