Skip to the content.

photo-exif-date-print.py

index

description

Print date to photo by using exif data.

preparation

Search font file place of your PC:

$ sudo find / -name "Arial Black.ttf"

 Mac example

/Library/Fonts/Arial Black.ttf

 copy font file

$ cp /Library/Fonts/Arial Black.ttf ./

usage

$ python photo_exif_date_print.py sample.jpg

if you want to process many files. make below script named photo-exif-date-print.sh

#!/bin/bash
for f in *.jpg
do
    python photo-exif-date-print.py $f
done

then execute following commands:

$ chmod 755 photo-exif-date-print.sh
$ ./photo-exif-date-print.sh

original image

image

processed image

image

Reference