Skip to content

watermelonlh111/date_stamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Photo Date Stamping Script

This bash script automatically adds Kodak-style date stamps to your photos while preserving original resolution. It intelligently crops or pads images to achieve a standard 2:3 aspect ratio for optimal printing.

Features

  • Adds EXIF-based date stamps in classic Kodak style
  • Automatically detects and processes all JPEG files
  • Maintains original image quality and resolution
  • Smart aspect ratio adjustment (crops near 2:3, pads others)
  • Case-insensitive file handling
  • Progress tracking and error handling

Usage

Make the script executable and run it in any directory containing JPEG images:

chmod +x crop_and_stamp.sh
./crop_and_stamp.sh

Processed images will be saved in a date_stamp subdirectory.

Requirements

  • ImageMagick (for image processing and date extraction)
  • Bash shell environment

Install ImageMagick on Ubuntu/Debian:

sudo apt-get install imagemagick

How It Works

  1. Scans current directory for all JPG/JPEG files
  2. Extracts shooting date from EXIF DateTimeOriginal
  3. Analyzes image dimensions and aspect ratio
  4. Crops or pads image to achieve 2:3 ratio
  5. Adds formatted date stamp watermark
  6. Saves processed images in output directory

Perfect for creating printable photo collections with classic date-stamped memories.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages