News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Maintain Original File Size After Date Change...

Started by captured, February 26, 2020, 03:40:05 AM

Previous topic - Next topic

captured

Linux Mint 19.3 64 bit
ExifTool libimage-exiftool-perl 10.80-1

Hello.

Is it possible to maintain the resulting image's Size after a date change,
the same as the Original ?

exiftool "-FileModifyDate<DateTimeOriginal" "-ModifyDate<DateTimeOriginal" "-CreateDate<DateTimeOriginal" DSCF3209.raf

Result:    -rw-r--r-- 1 dafoo users  23769100 May  7  2015 DSCF3209.raf
Original: -rw-r--r-- 1 dafoo users  23822336 May 16  2015 DSCF3209.raf_original

Thank you

The result is a different size from the original image, shouldn't they remain the same ?

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

captured

Many thanks Phil.

Is it correct to assume if I am 'only' copying the DateTimeOriginal from the exif
to the File Modify Date, the size of the receiving file will not change ?

e.g.;
exiftool "-FileModifyDate<DateTimeOriginal" DSC_1462.JPG

Best

Phil Harvey

If you don't change any metadata in the file, then the file is not edited.

FileModifyDate is a file system attribute, so the file isn't modified when this is written.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

captured