This repository contains a very simple, yet effective script for using the OpenAI API to conduct batch file renaming operations. It is particularly suitable for processing a folder full of images that contain non-descriptive names, such as UUIDs or other random identifiers.
- Renames images in bulk for better organization and clarity.
- Utilizes the OpenAI API to generate meaningful names for files.
- Processes images quickly to rewrite their names.
- Converts WebP images to PNG format during the renaming process.
| Script | Description |
|---|---|
| renamer.py | Renames images recursively based on their content using OpenAI's vision model |
| rename-and-convert.py | Renames images and converts WebP files to PNG format |
- Place your images in a dedicated folder. Ensure that the images have non-descriptive names.
- Run the renamer script. It will process all images in the folder, renaming them to more meaningful titles based on their content.
- The script automatically converts any WebP images to PNG format, ensuring compatibility with various applications.