Skip to main content

Photonamer: Autonomous photo file renaming tool using local Visual-Language Models

Project description

Photonamer: Autonomous AI Image File Renamer for Apple Silicon Macs

PhotoNamer is a fast, privacy-first CLI tool that uses local a Vision-Language Model (specifically Qwen2.5-VL) to analyze your photos and automatically rename them based on their visual composition, lighting, and mood.

Built specifically for Apple Silicon using the MLX framework, it processes heavy RAW and JPEG files entirely offline—meaning your personal photos never leave your Mac.

Features

  • True Visual Understanding: Powered by Qwen2.5-VL, it looks at the image and extracts the subject, mood, lighting, and photographic principles.
  • 100% Local & Private: No API keys, no cloud uploads, no subscriptions. Everything runs on your own hardware.
  • Apple Silicon Optimized: Uses Apple's native MLX framework for unified memory processing, keeping RAM usage perfectly stable even when processing thousands of photos.
  • Fail-Safe Dry Runs: By default, the app runs in "Preview Mode" so you can see exactly how files will be renamed before altering your file system.
  • Highly Customizable: Interactive wizard lets you build your naming template on the fly and choose your preferred casing (PascalCase, snake_case, UPPERCASE, lowercase).

Installation

Prerequisites

  • A Mac with an Apple Silicon chip (M1/M2/M3/M4), at least 16GB of RAM is recommended.
  • Python 3.10 or newer.

For Photographers & End-Users (Recommended)

The safest and easiest way to install PhotoNamer globally is using pipx. This ensures the heavy AI dependencies don't conflict with your Mac's system files.

  1. Install pipx via Homebrew (if you haven't already):
    brew install pipx
    pipx ensurepath
    
  2. Install the app via pipx:
    pipx install photonamer
    

Alternative: pip

If you're already working inside a virtual environment:

pip install photonamer

For Developers

If you want to modify the source code or contribute, install it in editable mode:

git clone https://github.com/Kevo-03/Automatic-Photo-Namer.git
cd Automatic-Photo-Namer
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

Usage

Navigate to any folder containing your photos (.jpg, .jpeg, .png, .nef) and simply run the command:

photonamer

The interactive wizard will guide you through the process:

  1. Fields: Choose what information you want in the filename (Options: date, subject, mood, lighting, principle).
  2. Separator: Choose how fields are connected (e.g., _ or -).
  3. Casing Style: Format the text (pascal, snake, upper, lower).
  4. Execution: Confirm if you want a safe dry-run (Preview) or a live execution.

Running with Flags

You can skip the interactive wizard entirely by passing options as flags. Any flag you provide will not be prompted for—only missing options trigger a prompt.

# Skip the wizard completely
photonamer --fields "date,subject,mood" --sep _ --casing pascal --execute

# Skip only some prompts (remaining options will still be prompted)
photonamer --sep - --casing kebab
Flag Short Options Default
--fields -f date, subject, mood, lighting, principle date, subject, mood, principle
--sep -s _, - _
--casing -c pascal, snake, kebab, upper, lower pascal
--dry-run / --execute -d / -e --dry-run (preview only)

Dry Run Example

Dry Run Example

Architecture Under the Hood

  • Engine: Apple mlx-vlm for hardware-accelerated inference.
  • Model: Qwen/Qwen2.5-VL-3B-Instruct for optimal speed-to-accuracy ratio.
  • Memory Management: Implements isolated sequential processing. The 5GB AI model loads into unified memory exactly once, and Python's garbage collector destroys individual image tensors post-inference, preventing thermal throttling or RAM overflow during massive batch jobs.
  • CLI Framework: Built with Typer and Rich for a beautiful, type-safe terminal experience.

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

photonamer-0.1.6.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

photonamer-0.1.6-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file photonamer-0.1.6.tar.gz.

File metadata

  • Download URL: photonamer-0.1.6.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for photonamer-0.1.6.tar.gz
Algorithm Hash digest
SHA256 9867ea04addcd9e4344938364ec79118180b3e3ee9bdb89731cc6a0b2d772a76
MD5 63ff5a0105a88e01da0a3a9ad7d7a9dd
BLAKE2b-256 92a33b260770abeb1c77294be951a9ca32f88d5169d7a5fd1a4d1caf2c457aa4

See more details on using hashes here.

File details

Details for the file photonamer-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: photonamer-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for photonamer-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b92bf970727c910dbcd5742a86afcebce6f65873f90404e457f622139232fce4
MD5 aa5c2b684fa553b7a9ed458f8bbd8a38
BLAKE2b-256 1ef3efbc77f2841f6b4ec95bdbf7ae6f93889b857a32cdf04e8238f58f76f3bb

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