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.
- 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
Make the script executable and run it in any directory containing JPEG images:
chmod +x crop_and_stamp.sh
./crop_and_stamp.shProcessed images will be saved in a date_stamp subdirectory.
- ImageMagick (for image processing and date extraction)
- Bash shell environment
Install ImageMagick on Ubuntu/Debian:
sudo apt-get install imagemagick- Scans current directory for all JPG/JPEG files
- Extracts shooting date from EXIF DateTimeOriginal
- Analyzes image dimensions and aspect ratio
- Crops or pads image to achieve 2:3 ratio
- Adds formatted date stamp watermark
- Saves processed images in output directory
Perfect for creating printable photo collections with classic date-stamped memories.