Exiftool has become an irreplaceable companion for organising and checking my image files.
Checking JPEG File integrity
jpeginfo -c * | grep -v [OK]
IMG_1745.JPG 4752 x 3168 24bit Exif N 2245978 Premature end of JPEG file [WARNING]
Set File Modification Date to the Exif Date
# -r | Recursive
# Format: Destination (which should be written) < Source Date(which should be read from)
exiftool -r "-FileCreateDate<DateTimeOriginal" "-FileModifyDate<DateTimeOriginal" *
Bulk change Exif Dates/Times of images
#See all Dates of a File
exiftool -time:all IMG_1508.JPG
File Modification Date/Time : 2009:03:08 01:04:58+01:00
File Access Date/Time : 2021:03:11 15:58:08+01:00
File Inode Change Date/Time : 2009:03:08 01:04:58+01:00
Modify Date : 2009:03:07 07:08:32
Date/Time Original : 2009:03:07 07:08:32
Create Date : 2009:03:07 07:08:32
Sub Sec Time : 00
Sub Sec Time Original : 00
Sub Sec Time Digitized : 00
Profile Date Time : 2003:07:01 00:00:00
Create Date : 2009:03:07 07:08:32.00
Date/Time Original : 2009:03:07 07:08:32.00
Modify Date : 2009:03:07 07:08:32.00
#Minus
exiftool "-AllDates-=5:7:8 16:0:0" -overwrite_original *.JPG
#Plus
exiftool "-AllDates+=5:7:8 16:0:0" -overwrite_original *.JPG
#Format: "YEARS:MONTHS:DAYS HOURS:MINUTES:SECONDS"
# -overwrite_original for not creating backup files