Skip to main content

Rename images based on AI-generated descriptions.

Project description

AI Image Renamer

PyPI - Version PyPI - Downloads PyPI - License

AI Image Renamer CLI is a command-line tool that leverages generative artificial intelligence to intelligently rename your image files based on their content. This helps in organizing your photo collection by giving images more descriptive and searchable filenames. A free Groq API key is required for this project. For a full documentation of this tool, please visit the official documentation.

Features

  • 🤖 AI: Leverage the latest AI technology to quickly rename your images
  • ⚡️Speed: Groq's fast infrastructure processes your files in milliseconds
  • 🔎 SEO: Generated file names are SEO-friendly
  • 📚 Batch: Use one or multiple image files within a single command
  • 👨‍💻 Easy: Renaming files requires only a single command line

Installation

AI Image Renamer is available through multiple installation methods:

1. Using pipx (recommended)

pipx install ai-image-renamer

2. Using pip

pip install ai-image-renamer

3. From the Git repository

git clone https://gitlab.com/thaikolja/ai-image-renamer.git
cd ai-image-renamer
pip install -e .

4. From a ZIP archive

  1. Download the ZIP from the repository.
  2. Extract it and run:
cd ai-image-renamer-main
pip install .

5. Run directly from source

python -m ai_image_renamer.cli path/to/image.jpg

After installation, obtain a free Groq API key and set it as an environment variable:

export GROQ_API_KEY="your-key-here"

Usage

The rename-images command is your entry point to the tool. However, since it's using Groq and Meta's Llama 4 Scout model, some limitations apply:

Basic Usage

To rename a single image:

rename-images path/to/your/image.jpg

To rename multiple images:

rename-images image1.png image2.jpg path/to/another/image.webp

To rename an image with only 3 words:

rename-images -w 3 DSC_123.jpg

See rename-images -h for more options, or read the documentation.

Contributing

I welcome contributions to AI Image Renamer! Please see the CONTRIBUTING.md file for guidelines on how to contribute.

Author

  1. Kolja Nolte (kolja.nolte@gmail.com)

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_image_renamer-1.1.0.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_image_renamer-1.1.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file ai_image_renamer-1.1.0.tar.gz.

File metadata

  • Download URL: ai_image_renamer-1.1.0.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ai_image_renamer-1.1.0.tar.gz
Algorithm Hash digest
SHA256 33e3a49a65b1e6468a2310b128529a0fb16cd2ce05487360533bf7d57efb9d1e
MD5 fac2cc8954caec5c112f7d5e7380854f
BLAKE2b-256 ef317c9bc416e5830961e5998605cfce8bdeae9692f257110cc9ab08301e51f9

See more details on using hashes here.

File details

Details for the file ai_image_renamer-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_image_renamer-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba9973c60edaccc39345a4003591033d605e21ce4cc95e9404e1c7e6799c3e90
MD5 986f23281c7af67a1858e21940bac515
BLAKE2b-256 64584ea519c14592c963272a2c4c9bf62e39c12392b7b6593459c0e34535053a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page