| Crates.io | nameback |
| lib.rs | nameback |
| version | 0.7.1 |
| created_at | 2025-10-16 03:49:29.682547+00 |
| updated_at | 2025-11-02 03:26:12.436387+00 |
| description | Rename files based on their metadata with multi-language OCR, HEIC support, and video frame extraction |
| homepage | https://github.com/h4x0r/nameback |
| repository | https://github.com/h4x0r/nameback |
| max_upload_size | |
| id | 1885352 |
| size | 101,020 |
Rename files based on their metadata. Automatically extracts titles, dates, and descriptions from your files to give them meaningful names.
Available Tools:
Transforms meaningless filenames into descriptive ones using embedded metadata:
IMG_2847.jpg → 2024-03-15_sunset.jpg
document.pdf → Annual_Report_2024.pdf
screenshot_20241015.png → 輸入_姓名.png (Chinese OCR)
VID_20241015.mp4 → Product_Demo_Video.mp4 (frame OCR)
IMG_3847.heic → Family_Reunion_2024.heic
brew tap h4x0r/nameback
brew install nameback
Automatically installs all dependencies (exiftool, tesseract, ffmpeg, imagemagick).
Download and install nameback-x86_64-pc-windows-msvc.msi from releases
What you get:
nameback in any terminal (automatically added to PATH)No manual setup required - everything works out of the box!
Silent installation: msiexec /i nameback-x86_64-pc-windows-msvc.msi /quiet
cargo install nameback
nameback --install-deps # Interactive dependency installation
cargo install nameback --bin nameback-gui
nameback-gui
# Download from releases
wget https://github.com/h4x0r/nameback/releases/latest/download/nameback_0.4.1_amd64.deb
sudo dpkg -i nameback_0.4.1_amd64.deb
sudo apt-get install -f # Install dependencies
The .deb package includes both CLI and GUI tools.
All release artifacts are signed with SLSA build provenance attestations for supply chain security. You can verify that your downloaded files are authentic and haven't been tampered with.
Prerequisites: Install GitHub CLI
Verify any artifact:
# Verify MSI installer (Windows)
gh attestation verify nameback-x86_64-pc-windows-msvc.msi --owner h4x0r
# Verify DMG installer (macOS)
gh attestation verify nameback-x86_64-apple-darwin.dmg --owner h4x0r
# Verify .deb package (Linux)
gh attestation verify nameback_0.5.0-1_amd64.deb --owner h4x0r
What this verifies:
Additional verification with checksums:
Download checksums.txt from the release page, then:
# macOS
shasum -a 256 -c checksums.txt --ignore-missing
# Linux
sha256sum -c checksums.txt --ignore-missing
# Windows (PowerShell)
Get-Content checksums.txt | Select-String "nameback.*windows" | ForEach-Object {
$hash, $file = $_ -split ' '
if ((Get-FileHash $file -Algorithm SHA256).Hash -eq $hash.ToUpper()) {
"✓ $file verified"
} else {
"✗ $file FAILED"
}
}
The --ignore-missing flag lets you verify just the file you downloaded without errors for other platforms.
For maximum security, use both attestation verification (proves authenticity) and checksum verification (proves integrity).
# Preview what will change (safe, no modifications)
nameback ~/Pictures --dry-run
# Rename the files
nameback ~/Pictures
Windows: Start Menu → nameback
macOS (Homebrew): Run nameback-gui in terminal
Linux (cargo install): Run nameback-gui in terminal
Linux (.deb package): Launch from Applications menu or run nameback-gui
Features:
# Organize recovered files from data recovery
nameback /tmp/photorec --dry-run
# Process screenshots folder with OCR
nameback ~/Desktop/Screenshots --verbose
# Clean up iPhone photo exports (HEIC support)
nameback ~/Desktop/iPhone_Export
# Organize downloaded documents
nameback ~/Downloads --dry-run
nameback <directory> # Rename files (includes GPS location & timestamps by default)
nameback <directory> --dry-run # Preview changes only
nameback <directory> --verbose # Show detailed progress
nameback <directory> --skip-hidden # Skip hidden files
nameback <directory> --no-location # Exclude GPS location from filenames
nameback <directory> --no-timestamp # Exclude timestamps from filenames
nameback <directory> --no-geocode # Use raw GPS coordinates instead of city names
nameback <directory> --fast-video # Use single-frame video analysis (faster, less accurate)
nameback --check-deps # Check dependencies
nameback --install-deps # Install dependencies
Default behavior: By default, nameback includes GPS location (reverse geocoded to city names like "Seattle_WA") and timestamps in filenames when available. Use --no-location, --no-timestamp, or --no-geocode to disable these features.
Nameback is developed with security best practices. For automated security controls in your GitHub repositories, check out 1-click-github-sec by the same author (Albert Hui) - automated Dependabot, CodeQL, secret scanning, and more.
Nameback uses the following open-source dependencies:
Tesseract OCR by Google Inc. - Optical character recognition
FFmpeg - Multimedia framework for video frame extraction
ImageMagick by ImageMagick Studio LLC - HEIC image format support
All license texts are available in the LICENSES directory. For detailed attribution information, see third_party/README.md.
Nameback uses a 4-layer fallback system to ensure dependencies install successfully even in restrictive network environments:
This ensures ~99% installation success rate across corporate firewalls, VPNs, and regional restrictions.
See RELEASING.md for the release process using cargo-release.
MIT License - see LICENSE file for details
Created by Albert Hui (@4n6h4x0r)
Built with Claude Code