ExifTool Forum

ExifTool => Newbies => Topic started by: imajica on April 14, 2024, 10:23:24 PM

Title: Remove exif data without altering the modified date and time?
Post by: imajica on April 14, 2024, 10:23:24 PM
I want to be able to remove all metadata from a file.... so this is what I am doing:

exiftool.exe -overwrite_original -all= filename.jpg

This works... except that it changes the modified date to the current date and time.  Is there a way to remove the data, but leave the modified date and time alone?

Thanks,
Title: Re: Remove exif data without altering the modified date and time?
Post by: StarGeek on April 14, 2024, 10:28:18 PM
Use the -P (-preserve) option (https://exiftool.org/exiftool_pod.html#P--preserve).
Title: Re: Remove exif data without altering the modified date and time?
Post by: imajica on April 14, 2024, 10:44:46 PM
Thank you!