{"id":27106238,"url":"https://github.com/angelhtml/image_compress","last_synced_at":"2025-04-06T19:38:34.227Z","repository":{"id":285582167,"uuid":"958638236","full_name":"angelhtml/image_compress","owner":"angelhtml","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-01T14:27:30.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T15:38:13.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angelhtml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-01T14:18:47.000Z","updated_at":"2025-04-01T14:27:34.000Z","dependencies_parsed_at":"2025-04-01T15:48:45.268Z","dependency_job_id":null,"html_url":"https://github.com/angelhtml/image_compress","commit_stats":null,"previous_names":["angelhtml/image_compress"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelhtml%2Fimage_compress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelhtml%2Fimage_compress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelhtml%2Fimage_compress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelhtml%2Fimage_compress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angelhtml","download_url":"https://codeload.github.com/angelhtml/image_compress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247542736,"owners_count":20955856,"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":[],"created_at":"2025-04-06T19:38:33.653Z","updated_at":"2025-04-06T19:38:34.217Z","avatar_url":"https://github.com/angelhtml.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"How to Use This Script:\nInstall Pillow if you haven't: pip install pillow\n\nSet the paths:\n\nReplace \"path/to/your/source/folder\" with your source folder containing images\n\nReplace \"path/to/your/destination/folder\" with where you want compressed images saved\n\nAdjust settings (optional):\n\nJPEG_QUALITY: 85 is good, lower for more compression\n\nWEBP_QUALITY: 80 is good, lower for more compression\n\nMAX_SIZE: Set maximum dimension (width/height) or None to keep original size\n\nRun the script: python image_compressor.py\n\nWhat It Does:\nReads all supported image files from the source folder\n\nFor each image:\n\nConverts to RGB if needed (for JPEG compatibility)\n\nResizes if MAX_SIZE is specified\n\nCreates three compressed versions:\n\nJPEG with quality optimization\n\nPNG with optimization\n\nWebP (usually the best compression)\n\nSaves all compressed versions to the destination folder\n\nPreserves original filenames but adds suffixes (_compressed.jpg, _optimized.png, etc.)\n\nHandles errors gracefully and reports progress\n\nSupported Image Formats:\nThe script handles JPG, JPEG, PNG, WebP, BMP, and GIF files. You can modify the SUPPORTED_EXTENSIONS tuple if needed.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangelhtml%2Fimage_compress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangelhtml%2Fimage_compress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangelhtml%2Fimage_compress/lists"}