diff --git a/rootfs/home/andre/.bashrc b/rootfs/home/andre/.bashrc index b220df6..eb60b6c 100644 --- a/rootfs/home/andre/.bashrc +++ b/rootfs/home/andre/.bashrc @@ -284,6 +284,15 @@ BG_LIGHTCYAN="\e[48;5;14m" BG_WHITE="\e[48;5;15m" BG_NO="\e[0;00m" +Insta360Pictures() { + for instafile in `ls | egrep -i "^[0-9a-z]+_[0-9]+\.[0-9]+_[0-9]+\.jp[e]*g"` + do + timestamp=$(echo "$instafile" | sed 's/.*_\([0-9]*\)\.jpg/\1/') + timestamp_sec=$(($timestamp / 1000)) + # Datum formatieren und in EXIF schreiben + exiftool -overwrite_original -DateTimeOriginal="$(date -d @${timestamp_sec} '+%Y:%m:%d %H:%M:%S')" $instafile + done +} AddTimeDateToPictures() { J=$1