I would like to overwrite a FileModifyDate entry with a ModifyDate entry of an image to keep the correct order.
I used the following command to do that:
-v5 -d "%Y:%m:%d %H:%M:%S" "-FileModifyDate<ModifyDate" "/storage/emulated/0/DCIM/Camera-Temp-1/Camera/IMAG0001.jpg"
But I get a "nothing changed" response.
NOTE:
ExifTool is running on my Android 8 devices by means of the app "ExifTool" from "Oleg A"...
I hope someone can help me,
thanks!
You will get this message if the file doesn't contain a "ModifyDate" tag. Use this command to see what date/time tags are available:
exiftool -a -G1 -s -time:all FILE
- Phil
Thank you for your answer!
But it seems to have that tag... (see attachment)
Since this is on an Android system, maybe that implantation of perl doesn't have the appropriate routines to change system timestamps?
Are you able to directly set the FileModifyDate?
exiftool "-FileModifyDate=2018:09:04 23:12:19" File
Also, the -d option (https://exiftool.org/exiftool_pod.html#d-FMT--dateFormat) can be removed from this command, it isn't necessary. See FAQ #5 (https://exiftool.org/faq.html#Q5), third paragraph.
When I use the command you posted, I am always getting the attached error message. (su is on)
So I tried to set the -d option to avoid this message, which did not help...
How about if you drop all formatting
exiftool -FileModifyDate=20180904231219 File
Unfortunatelly the same error...
The command -FileModifyDate "/storage/emulated/0/2011-12-30 15-38-40 - IMAG0108.jpg" returns File Modification Date/Time : 2018:09:04 23:40:47+02:00.
But when i use the command "-FileModifyDate=2018:09:04 23:12:19+02:00" "/storage/emulated/0/2011-12-30 15-38-40 - IMAG0108.jpg" it returns the same "Error converting Value for File..." error ::)
It would be useful if you gave the exact error message.
If the error is in the PrintConvInv, then try adding -n to the command. If it is in the ValueConvInv, then the problem may be that Time::Local isn't available or isn't working. Be sure this module is installed.
- Phil
Sorry for being unspecific, it was the "ValueConvInv" error.
Is there a exiftool command to test if module "Time::Local" is installed?
I don't have pearl installed dierctly on Android...
EDIT:
I have found the App "File Timestamp" from "PogSoft" which does exactly what I need (copying the EXIF entry for capture date to the modified date entry for all files).
So solving this problem is relevant for other/interest only...