exif_filename - a Powerful Command-Line Tool Designed for Automatically Renaming Image Files based on EXIF metadata

CK3350 
Created at Jan 23, 2026 09:50:12
Updated at Jan 23, 2026 09:50:57 

  67   0   0  

This utility, exif_filename, is a powerful command-line tool designed for automatically renaming image files based on their embedded EXIF metadata. It streamlines the organization of digital photos by leveraging the capture date and optional geographical information directly from the images, providing a structured and informative naming convention.

 

Why Use exif_filename?

exif_filename offers significant advantages for anyone managing a large collection of digital photographs:

  • Automated Organization: Eliminates the manual effort of renaming files, which is prone to human error and inconsistency.
  • Chronological Sorting: Renames files with a date-time stamp (e.g., YYYY_MM_DD_HHhMMmSS), making it effortless to sort photos chronologically within any file explorer.
  • Geographical Context: Enhances filenames by integrating location data (City, State, Country) extracted from geotagged photos, providing immediate context about where a picture was taken without needing to open it.
  • Batch Processing: Efficiently processes multiple image files in a specified directory, handling entire photo libraries with a single command.
  • Standardized Naming: Ensures a consistent naming scheme across all your images, making future retrieval and management much simpler.

 

Technical Requirements and Compatibility

This tool is designed for users comfortable with command-line interfaces and basic system operations. It requires some engineering skills to set up and utilize effectively.

  • Operating System Support:
    • macOS
    • Linux
  • Dependencies: The tool relies on several external components to function correctly:
    • exiftool: A robust utility for reading, writing, and editing meta information in a wide variety of files.
    • Python 3.6+: The scripting language environment for core logic.
    • Geocoder library: A Python library used to convert geographical coordinates (latitude, longitude) from EXIF data into human-readable location names.
  •  

Runtime Example

The following example demonstrates how to use exif_filename to process a directory of images and the typical output you would expect.

exif_filename.sh ~/Downloads/Photos-3-001

This command initiates the renaming process for all applicable image files within the ~/Downloads/Photos-3-001/ directory:

[INFO] EXIF File Renaming Utility v1.0.0
[INFO] Target directory: /Users/chunkang/Downloads/Photos-3-001 2
[INFO] Force mode: true

[INFO] Checking dependencies...
[INFO] exiftool is available
[INFO] Python 3.6+ is available
[INFO] Geocoder library is available

[INFO] Processing files...
[OK] Renamed: 2026_01_07_21h31m38s_1.jpg -> 2026_01_07_21h31m38s.jpg
[OK] Renamed: 2026_01_07_20h29m24s_Irvine_California_US_1.jpg -> 2026_01_07_20h29m24s_Irvine_California_US.jpg
[OK] Renamed: 2026_01_07_21h26m52s_1.jpg -> 2026_01_07_21h26m52s.jpg
[OK] Renamed: 2026_01_07_21h26m48s_1.jpg -> 2026_01_07_21h26m48s.jpg
[OK] Renamed: 2026_01_07_20h29m10s_Irvine_California_US_1.jpg -> 2026_01_07_20h29m10s_Irvine_California_US.jpg
[OK] Renamed: 2026_01_17_22h40m50s_North_Tustin_California_US_1.jpg -> 2026_01_17_22h40m50s_North_Tustin_California_US.jpg
[OK] Renamed: 2026_01_07_20h36m16s_Irvine_California_US_1.jpg -> 2026_01_07_20h36m16s_Irvine_California_US.jpg
[OK] Renamed: 2026_01_07_20h37m50s_Irvine_California_US_1.jpg -> 2026_01_07_20h37m50s_Irvine_California_US.jpg
[OK] Renamed: 2026_01_07_20h20m33s_Irvine_California_US_1.jpg -> 2026_01_07_20h20m33s_Irvine_California_US.jpg
[OK] Renamed: 2026_01_07_21h26m20s_1.jpg -> 2026_01_07_21h26m20s.jpg
[OK] Renamed: 2026_01_07_21h26m30s_1.jpg -> 2026_01_07_21h26m30s.jpg
[OK] Renamed: 2026_01_17_22h21m50s_North_Tustin_California_US_1.jpg -> 2026_01_17_22h21m50s_North_Tustin_California_US.jpg
[OK] Renamed: 2026_01_17_22h22m02s_North_Tustin_California_US_1.jpg -> 2026_01_17_22h22m02s_North_Tustin_California_US.jpg
[OK] Renamed: 2026_01_07_21h26m45s_1.jpg -> 2026_01_07_21h26m45s.jpg
[OK] Renamed: 2026_01_07_20h38m33s_Irvine_California_US_1.jpg -> 2026_01_07_20h38m33s_Irvine_California_US.jpg
[OK] Renamed: 2026_01_07_20h36m12s_Irvine_California_US_1.jpg -> 2026_01_07_20h36m12s_Irvine_California_US.jpg
[OK] Renamed: 2026_01_17_22h22m37s_North_Tustin_California_US_1.jpg -> 2026_01_17_22h22m37s_North_Tustin_California_US.jpg
[OK] Renamed: 2026_01_07_21h31m19s_1.jpg -> 2026_01_07_21h31m19s.jpg
[OK] Renamed: 2026_01_07_21h26m12s_1.jpg -> 2026_01_07_21h26m12s.jpg

==========================================
           Processing Summary
==========================================
Total files found:  19
Files renamed:      19
Files skipped:      0
Files failed:       0
==========================================

Output Breakdown:

  • Version and Target: Confirms the tool's version and the specific directory being processed.
  • Force Mode: Indicates that the tool will proceed with renaming, potentially overwriting existing non-conflicting filenames.
  • Dependency Check: Verifies that all necessary external tools and libraries (exiftool, Python 3.6+, Geocoder) are installed and accessible, ensuring a smooth operation.
  • File Processing: Displays a real-time log of each file being renamed.
    • 2026_01_07_21h31m38s.jpg: This format indicates a filename derived solely from the image's EXIF capture date and time (Year_Month_Day_HourhMinute_Second).
    • 2026_01_07_20h29m24s_Irvine_California_US.jpg: This format includes geographical information (City_State_Country) appended to the date-time stamp, indicating the photo was geotagged.
  • Summary Report: Provides a comprehensive overview of the processing operation, detailing the total number of files discovered, how many were successfully renamed, and if any were skipped or failed. This gives a clear indication of the batch operation's success.

 

You can download it at https://github.com/chunkang/exif_filename/releases/tag/release%2Fv1.0.0 



Tags: CLI EXIF Geo Code Geo Location Geographical Information exif_filename Share on Facebook Share on X

◀ PREVIOUS
Japan's Top 10 Video Streaming Companies

▶ NEXT
United States's Top 10 Video Streaming Companies

  Comments 0
SIMILAR POSTS

Adding a Personal Touch - Embed Your Copyright into Your Nikon’s EXIF Data

(updated at May 31, 2024)

FNC Batch Renames Digital Photos by Date

(created at Aug 21, 2009)


OTHER POSTS IN THE SAME CATEGORY

SouthEast Asia Advertising Market - Comprehensive Analysis by Country, Company, Platform & Revenue

(created at Jan 26, 2026)

Mongolia Unpacked: Demographics, Digital Economy, and Leading Streaming Services

(updated at Jan 26, 2026)

Spain: Demographics, Digital Usage, Economic Insights & Top 10 Streaming Services

(updated at Jan 26, 2026)

Comprehensive Report on Portugal: Demographics, Digital Usage, and Top Streaming Companies

(updated at Jan 26, 2026)

Italy: A Comprehensive Guide to Demographics, Digital Trends, and Its Top 10 Video Streaming Companies

(updated at Jan 26, 2026)

Germany's Digital Deep Dive: Demographics, Internet Usage, Market Trends, and Top 10 Video Streaming Powerhouses

(updated at Jan 26, 2026)

France's Digital Economy: Demographics, Trends, and Streaming Leaders

(updated at Jan 26, 2026)

United Kingdom: Demographics, Digital Life, and Streaming's Top 10 Players

(updated at Jan 26, 2026)

Russia's Digital Blueprint: Economy, Demographics, and Streaming Landscape

(updated at Jan 26, 2026)

Brazil's Digital & Demographic Deep Dive: Economy & Top Streaming Services

(updated at Jan 26, 2026)

Canada's Digital Pulse: Demographics, Connectivity & Top 10 Streaming Services Unveiled

(created at Jan 26, 2026)

United States's Top 10 Video Streaming Companies

(updated at Jan 26, 2026)

Japan's Top 10 Video Streaming Companies

(updated at Jan 26, 2026)

Korea's Streaming Story: Top 10 Platforms in a Digital Nation

(updated at Jan 26, 2026)

Singapore's Top 10 Video Streaming Companies

(updated at Jan 26, 2026)

Indonesia's Top 10 Video Streaming Companies

(updated at Jan 26, 2026)

Malaysia's Top 10 Video Streaming Companies 2026

(updated at Jan 26, 2026)

The Correlation between Income Level and Television Viewing Time

(updated at Jan 16, 2026)

Phillippine's Top 10 Video Streaming Companies 2026

(updated at Jan 16, 2026)

Thailand's Top 10 Video Streaming Companies 2026

(updated at Jan 16, 2026)

Vietnamese Top 10 Video Streaming Companies 2026

(updated at Jan 16, 2026)

Vietnam Television (aka VTV)

(updated at Jan 07, 2026)

Asus Chromebook (CB3-451) Factory Reset

(updated at Aug 28, 2025)

Why Maintenance is never ending in the Interenet-based Service?

(updated at Nov 29, 2024)

The AI Revolution of 2024: Gemini vs. ChatGPT-4o

(updated at May 16, 2024)

The quality of DVD-Video

(updated at Nov 29, 2024)

DVD stands for...

(updated at Nov 29, 2024)

UPDATES

The Making of OpenAI: Birth, Battles, and Breakthroughs

(updated at Feb 09, 2026)

Brazil's Digital & Demographic Deep Dive: Economy & Top Streaming Services

(updated at Jan 26, 2026)

World Population Top 30 (2016-2025)

(created at Jan 26, 2026)

SouthEast Asia Advertising Market - Comprehensive Analysis by Country, Company, Platform & Revenue

(created at Jan 26, 2026)

Comprehensive Report on Portugal: Demographics, Digital Usage, and Top Streaming Companies

(updated at Jan 26, 2026)

Mongolia Unpacked: Demographics, Digital Economy, and Leading Streaming Services

(updated at Jan 26, 2026)

Italy: A Comprehensive Guide to Demographics, Digital Trends, and Its Top 10 Video Streaming Companies

(updated at Jan 26, 2026)

Spain: Demographics, Digital Usage, Economic Insights & Top 10 Streaming Services

(updated at Jan 26, 2026)

France's Digital Economy: Demographics, Trends, and Streaming Leaders

(updated at Jan 26, 2026)

Germany's Digital Deep Dive: Demographics, Internet Usage, Market Trends, and Top 10 Video Streaming Powerhouses

(updated at Jan 26, 2026)

United Kingdom: Demographics, Digital Life, and Streaming's Top 10 Players

(updated at Jan 26, 2026)

Russia's Digital Blueprint: Economy, Demographics, and Streaming Landscape

(updated at Jan 26, 2026)

Singapore's Top 10 Video Streaming Companies

(updated at Jan 26, 2026)

Canada's Digital Pulse: Demographics, Connectivity & Top 10 Streaming Services Unveiled

(created at Jan 26, 2026)

Korea's Streaming Story: Top 10 Platforms in a Digital Nation

(updated at Jan 26, 2026)

Malaysia's Top 10 Video Streaming Companies 2026

(updated at Jan 26, 2026)

Indonesia's Top 10 Video Streaming Companies

(updated at Jan 26, 2026)

Japan's Top 10 Video Streaming Companies

(updated at Jan 26, 2026)

United States's Top 10 Video Streaming Companies

(updated at Jan 26, 2026)

The Evolving Role of Engineering Organizations in the AI Era

(created at Jan 24, 2026)

The Correlation between Income Level and Television Viewing Time

(updated at Jan 16, 2026)

Problem-Solving Narratives in Startup Programs

(created at Jan 16, 2026)

Vietnamese Top 10 Video Streaming Companies 2026

(updated at Jan 16, 2026)

Thailand's Top 10 Video Streaming Companies 2026

(updated at Jan 16, 2026)

Phillippine's Top 10 Video Streaming Companies 2026

(updated at Jan 16, 2026)

Business Structure Comparison: Sole Proprietorship vs S-Corporation

(updated at Jan 09, 2026)

Affordable Payroll Solutions for Family-Based Businesses in the US

(updated at Jan 09, 2026)

Vietnam Television (aka VTV)

(updated at Jan 07, 2026)

Pre-Departure Google Workspace Personal Data Cleanup

(created at Dec 16, 2025)

Do we know what causes endometrial cancer?

(updated at Nov 22, 2025)

What should you ask your physician about endometrial cancer?

(updated at Nov 22, 2025)

How is cancer of the cervix treated?

(updated at Nov 22, 2025)

Navigating Startup Funding Rounds: Expectations and Investment Sizes

(updated at Nov 19, 2025)

What is hot water steam cleaning and aren't all steam cleaners the same?

(updated at Nov 14, 2025)

To Pad or Not to Pad: The Lowdown on Carpet Padding

(updated at Nov 14, 2025)

Decoding the Pelvic Exam: A Comprehensive Women's Health Assessment

(updated at Nov 14, 2025)

How do they put people to sleep for an oral surgery?

(updated at Nov 14, 2025)

Unveiling the Link: Helicobacter pylori Infection and the Risk of Stomach Cancer

(updated at Nov 14, 2025)

Steve Jobs' Battle with Pancreatic Cancer and His Unconventional Dietary Choices

(updated at Nov 14, 2025)

Surgery for Colorectal Cancer

(updated at Nov 13, 2025)

Oral Microbiome Linked to Increased Pancreatic Cancer Risk

(updated at Nov 13, 2025)

What are the causes and risk factors for Pancreatic Cancer?

(updated at Nov 13, 2025)

What should I do if someone professes they love me after a short correspondence?

(updated at Nov 13, 2025)

I need a song that is like a love letter to lover?

(updated at Nov 13, 2025)

The Importance of Teeth Cleaning During Pregnancy

(updated at Nov 13, 2025)

Do I have to respond to all who answer my ad?

(updated at Nov 13, 2025)

Wrapping a Christmas present beautifully

(updated at Nov 13, 2025)

Wrapping an odd-shaped present

(updated at Nov 13, 2025)