{"id":23448314,"url":"https://github.com/anmnv/python-image-compressor","last_synced_at":"2026-02-27T06:02:29.766Z","repository":{"id":256469074,"uuid":"855396251","full_name":"AnMnv/python-image-compressor","owner":"AnMnv","description":"python image compressor","archived":false,"fork":false,"pushed_at":"2024-12-21T21:13:42.000Z","size":1720,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T17:42:26.818Z","etag":null,"topics":["compressor","image","python"],"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/AnMnv.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,"zenodo":null}},"created_at":"2024-09-10T19:53:27.000Z","updated_at":"2025-02-12T19:55:28.000Z","dependencies_parsed_at":"2024-11-02T23:18:34.354Z","dependency_job_id":"a8ad1962-8150-4923-ab63-0ef5639f7c12","html_url":"https://github.com/AnMnv/python-image-compressor","commit_stats":null,"previous_names":["anmnv/python-image-compressor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AnMnv/python-image-compressor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnMnv%2Fpython-image-compressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnMnv%2Fpython-image-compressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnMnv%2Fpython-image-compressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnMnv%2Fpython-image-compressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnMnv","download_url":"https://codeload.github.com/AnMnv/python-image-compressor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnMnv%2Fpython-image-compressor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266769986,"owners_count":23981483,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["compressor","image","python"],"created_at":"2024-12-23T22:15:00.151Z","updated_at":"2026-02-27T06:02:24.727Z","avatar_url":"https://github.com/AnMnv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Very simple, yet powerful script for local compression of multiple images.\n\nRequirements:\n```pip install Pillow tqdm```\n\n\u003e [!IMPORTANT]\n\u003e compressor_v2_async -- a version of the code that has all previous features + asynchronously processing with the asyncio library + progress bar :)\n\n\u003e [!IMPORTANT]\n\u003e compressor_v1 -- a version of the code that recursively goes through all folders in the current directory, compresses images and overwrites them.\n\n\u003e [!IMPORTANT]\n\u003e compressor -- current version of the code iterates through all image files in a given directory, compresses them to a target size, and saves them in an output folder. It reduces image dimensions if needed and adjusts the quality to achieve compression while maintaining a minimum threshold for quality.\n\nJust place all files (.png, .jpg, .jpeg) that you want to compress nearby the ```compressor.py``` and run it.\n\n| 1.66 Mb  | 156 Kb  |\n|---|---|\n| ![00014-3936683554](https://github.com/user-attachments/assets/be2ee138-baa1-45e6-b698-0e78b5f033e2) | ![00014-3936683554](https://github.com/user-attachments/assets/2e36f7a1-01aa-4a32-a39a-6242244794de)|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmnv%2Fpython-image-compressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanmnv%2Fpython-image-compressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmnv%2Fpython-image-compressor/lists"}