{"id":21189480,"url":"https://github.com/luphord/blitzcrop","last_synced_at":"2025-06-15T07:03:04.475Z","repository":{"id":57415608,"uuid":"477454766","full_name":"luphord/blitzcrop","owner":"luphord","description":"Simple GUI for interactive batch image cropping.","archived":false,"fork":false,"pushed_at":"2022-10-17T18:45:02.000Z","size":1467,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T07:02:37.492Z","etag":null,"topics":["crop","gui","image","image-processing"],"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/luphord.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","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-04-03T20:14:20.000Z","updated_at":"2024-08-13T09:38:06.000Z","dependencies_parsed_at":"2022-09-01T16:22:01.406Z","dependency_job_id":null,"html_url":"https://github.com/luphord/blitzcrop","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/luphord/blitzcrop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luphord%2Fblitzcrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luphord%2Fblitzcrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luphord%2Fblitzcrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luphord%2Fblitzcrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luphord","download_url":"https://codeload.github.com/luphord/blitzcrop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luphord%2Fblitzcrop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259935589,"owners_count":22934384,"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":["crop","gui","image","image-processing"],"created_at":"2024-11-20T18:52:43.327Z","updated_at":"2025-06-15T07:03:04.458Z","avatar_url":"https://github.com/luphord.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blitzcrop\n\n[![PyPI package](https://img.shields.io/pypi/v/blitzcrop)](https://pypi.python.org/pypi/blitzcrop)\n[![Build status](https://github.com/luphord/blitzcrop/actions/workflows/lint-test.yml/badge.svg)](https://github.com/luphord/blitzcrop/actions)\n\nGUI for interactive **batch image cropping**:\n\n1. Drag along the diagonal of the image from *upper left* to *lower right* corner and release the mouse button.\n2. Move the mouse to the upper right corner and click.\n3. Accept or reject the cropped image in the dialog popping up.\n\n![Demo of blitzcrop interaction](https://github.com/luphord/blitzcrop/raw/main/img/demo.gif)\n\n## Features\n* Batch crop large amounts of images in a short amount of time\n* Drag and click to crop an image\n* Crop *rotated* images\n* Pass images via command line\n* Navigate between images using `left arrow`/`right arrow`  or `A`/`D`\n* Accept cropped images by `Enter` or `Space` and reject them by `Esc`\n\n## Install\n\nYou can install `blitzcrop` using `pip` with\n\n```bash\npip3 install blitzcrop\n```\n\nAlternatively, you can download `blitzcrop.py` and then run it using `python3` with\n\n```bash\npython3 blitzcrop.py\n```\n\nIn this case, you need to ensure that [Pillow](https://pillow.readthedocs.io) and `tkinter` (including `ImageTk`) is installed on your system and available to `python3`. If you work on an Ubuntu-based Linux distribution, you may achieve that by means of\n\n```bash\nsudo apt install python3-tk python3-pil python3-pil.imagetk\n```\n\n## History\n\n### 0.3.0 (2022-10-17)\n* Abort rectangle selection by clicking with the *right* mouse button or by pressing `Esc`\n* Specify file name template by `-f/--file-name-template` with placeholders `image` and `now`\n* Specify image quality by `-q/--quality`\n* Specify `-m/--forget-metadata` to prevent storing original image metadata in cropped image; otherwise metadata will be preserved (including original image resolution)\n\n### 0.2.1 (2022-10-10)\n* Support Pillow \u003c 9.10 by monkey-patching `Image.Resampling`\n\n### 0.2.0 (2022-10-09)\n* Implement core cropping interaction with drag + click\n* Support multiple images via command line arguments\n* Support basic keybindings for image navigation and crop accept / reject\n\n### 0.1.0 (2022-04-03)\n* Created using [cookiecutter-pyscript](https://github.com/luphord/cookiecutter-pyscript)\n\n## Credits\n\nMain developer is luphord \u003cluphord@protonmail.com\u003e. [cookiecutter-pyscript](https://github.com/luphord/cookiecutter-pyscript) is used as project template.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluphord%2Fblitzcrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluphord%2Fblitzcrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluphord%2Fblitzcrop/lists"}