Openai Image Renamer

Simple Python script for batch file renaming operations with OpenAI API

About This Project

OpenAI-Image-Renamer is a Python script collection that uses the OpenAI API to batch rename image files based on their visual content. It targets folders containing images with non-descriptive names such as UUIDs or other random identifiers, replacing them with names that reflect what each image depicts. The repository includes two scripts: renamer.py, which recursively processes images using OpenAI's vision model, and rename-and-convert.py, which performs the same renaming and also converts WebP files to PNG for broader application compatibility.

The project relies on Python and the OpenAI API, sending image content to a vision model to generate descriptive titles that are then applied to the files. Its approach is intentionally minimal, focusing on automating a repetitive organizational task rather than providing a general-purpose file management framework.

This tool may be useful to individuals or teams who manage large collections of downloaded, exported, or generated images and need to make them searchable and easier to browse. Developers interested in combining computer vision models with local file operations may also find it a practical reference.

Project Details

Tags

image-renamingopenai

Explore More Projects