Skip to content

Instantly share code, notes, and snippets.

@emanuelduss
Created September 16, 2017 12:59
Show Gist options
  • Select an option

  • Save emanuelduss/82b3c2b87fa7cf11d039b10047255e53 to your computer and use it in GitHub Desktop.

Select an option

Save emanuelduss/82b3c2b87fa7cf11d039b10047255e53 to your computer and use it in GitHub Desktop.
Add EXIF info to WhatsApp images
for i in IMG-????????-WA????.jpg
do
YEAR=`ls $i | cut -c 5-8`
MONTH=`ls $i | cut -c 9-10`
DAY=`ls $i | cut -c 11-12`
jhead -mkexif $i
jhead -ds$YEAR:$MONTH:$DAY $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment