{"id":22111602,"url":"https://github.com/takk8is/python-image-renamer","last_synced_at":"2025-08-08T04:13:02.991Z","repository":{"id":232941490,"uuid":"785599734","full_name":"Takk8IS/python-image-renamer","owner":"Takk8IS","description":"Python Image Renamer","archived":false,"fork":false,"pushed_at":"2024-07-26T12:15:08.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T21:40:26.749Z","etag":null,"topics":["david-c-cavalcante","free","image","image-classification","image-processing","images","python","python3","rename","rename-files","renamer","takk-ag","takk-design","takk8is"],"latest_commit_sha":null,"homepage":"https://takk.ag","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/Takk8IS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":"If you have any questions or need support, please open an issue."},"created_at":"2024-04-12T08:08:16.000Z","updated_at":"2024-07-26T12:15:11.000Z","dependencies_parsed_at":"2024-04-12T15:28:59.973Z","dependency_job_id":"67b1cb37-8249-469e-a554-724d33695308","html_url":"https://github.com/Takk8IS/python-image-renamer","commit_stats":null,"previous_names":["takk8is/python-rename-files"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Takk8IS/python-image-renamer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Takk8IS%2Fpython-image-renamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Takk8IS%2Fpython-image-renamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Takk8IS%2Fpython-image-renamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Takk8IS%2Fpython-image-renamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Takk8IS","download_url":"https://codeload.github.com/Takk8IS/python-image-renamer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Takk8IS%2Fpython-image-renamer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269361829,"owners_count":24404426,"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-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["david-c-cavalcante","free","image","image-classification","image-processing","images","python","python3","rename","rename-files","renamer","takk-ag","takk-design","takk8is"],"created_at":"2024-12-01T10:49:29.132Z","updated_at":"2025-08-08T04:13:02.952Z","avatar_url":"https://github.com/Takk8IS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Renamer\n\nThis Python script is designed to rename image files in a specific directory. It searches for files with common image extensions (`.png`, `.jpg`, `.jpeg`, `.gif`, `.bmp`, `.tiff`) and renames them sequentially as \"photo-001.png\", \"photo-002.png\", and so on.\n\n## Functionality\n\nThe code performs the following steps:\n\n1. Imports the `os` module to interact with the operating system.\n2. Retrieves the current directory where the Python file is located.\n3. Lists all the files in the directory.\n4. Initialises a counter for the file names.\n5. Iterates over each file in the directory.\n6. Checks if the file is an image based on the extension.\n7. Creates a new file name in the format \"photo-XXX.png\", where XXX is a three-digit number incremented for each renamed file.\n8. Constructs the full path of the current file and the new file.\n9. Renames the file using the `os.rename()` function.\n10. Increments the counter.\n11. Displays a message indicating that the renaming is complete.\n\n## How to Use\n\n1. Ensure you have Python installed on your system.\n2. Save the Python script in a directory that contains the image files you want to rename.\n3. Open a terminal or command prompt and navigate to the directory where the script is located.\n4. Run the script by typing `python image-renamer.py` in the terminal.\n5. The script will rename all the image files in the directory and display a completion message.\n\n## Donations\n\nIf this script has been helpful for you, consider making a donation to support our work:\n\n-   $USDT (TRC-20): TP6zpvjt2ZNGfWKPevfp65ZrcbKMWSQXDi\n\nYour donations help us continue developing useful and innovative tools.\n\nThank you for using our script!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakk8is%2Fpython-image-renamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakk8is%2Fpython-image-renamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakk8is%2Fpython-image-renamer/lists"}