Skip to content

Instantly share code, notes, and snippets.

@ento
Created February 26, 2011 07:45
Show Gist options
  • Save ento/845041 to your computer and use it in GitHub Desktop.
Save ento/845041 to your computer and use it in GitHub Desktop.
Requires exiv2
#!/bin/sh
for f in $@
do
ctime=`stat -f "%SB" -t "%Y:%m:%d %H:%M:%S" "$f"`
exiv2 -k -M"set Exif.Image.DateTime Ascii $ctime" "$f"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment