Skip to content

Simple Python script for batch file renaming operations with OpenAI API

Notifications You must be signed in to change notification settings

danielrosehill/OpenAI-Image-Renamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batch File Renaming and Conversion Script

Overview

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.

Features

  • 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.

Scripts

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

Usage

  1. Place your images in a dedicated folder. Ensure that the images have non-descriptive names.
  2. Run the renamer script. It will process all images in the folder, renaming them to more meaningful titles based on their content.
  3. The script automatically converts any WebP images to PNG format, ensuring compatibility with various applications.

About

Simple Python script for batch file renaming operations with OpenAI API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages