Hi folks,
I am trying to copy metadata from one JPG file to another. I did .\exiftool.exe -s -g .\Archiv\Collage\FACE_RC_1557735950742.arc.jpg on the source file, which told me:
---- ExifTool ----
ExifToolVersion : 11.43
---- File ----
FileName : FACE_RC_1557735950742.arc.jpg
Directory : ./Archiv/Collage
FileSize : 410 kB
FileModifyDate : 2019:05:13 10:25:52+02:00
FileAccessDate : 2019:05:22 22:46:47+02:00
FileCreateDate : 2019:05:22 22:46:47+02:00
FilePermissions : rw-rw-rw-
FileType : JPEG
FileTypeExtension : jpg
MIMEType : image/jpeg
ImageWidth : 1920
ImageHeight : 1920
EncodingProcess : Baseline DCT, Huffman coding
BitsPerSample : 8
ColorComponents : 3
YCbCrSubSampling : YCbCr4:2:0 (2 2)
---- JFIF ----
JFIFVersion : 1.01
ResolutionUnit : None
XResolution : 1
YResolution : 1
---- MakerNotes ----
TimeStamp : 2019:03:29 14:42:22+01:00
---- Composite ----
ImageSize : 1920x1920
Megapixels : 3.7
I am especially interested in the TimeStamp property of the MakerNotes Group. This is written by the samsung gallery on android that automatically creates collages of some photos.
To copy that to the target file, I tried the following command:
exiftool -overwrite_original -tagsfromfile src.jpg -makernotes -make -model target.jpg
But it does not work. Output of the operation is:
Warning: No writable tags set from Archiv\Collage\FACE_SC_1558355655341.arc.jpg
0 image files updated
1 image files unchanged
Any help is welcome!
This works for me:
> exiftool a.jpg -tagsfromfile ../pics/SamsungES9.jpg -makernotes -make -model
1 image files updated
> exiftool a.jpg -makernotes
Maker Note Samsung 2 : (Binary data 126 bytes, use -b option to extract)
... but there are many different kinds of Samsung maker notes. If you send me a sample I'll take a look to see what is happening with your images. (philharvey66 at gmail.com)
- Phil
Thanks for your reply.
I've tried what you suggested, but still get the same output. It does not write anything to the target file.
I've sent you one of the source files that contains the makernote info I'm trying to copy.
I got the sample, thanks.
Sorry, but the TimeStamp is stored in the Samsung trailer, which is not currently writable. (See here (https://exiftool.org/index.html#JPEG) for a list of trailer write support.)
- Phil
Wow okay, thanks
Then I guess my only chance is to parse the exiftool output for the file, and just write the date to the exif timestamp of the target file.
Quote from: paul.h on May 23, 2019, 09:32:25 AMThen I guess my only chance is to parse the exiftool output for the file, and just write the date to the exif timestamp of the target file.
No need to parse anything. Just have exiftool do it.
exiftool -if "$TimeStamp" "-DateTimeOriginal<TimeStamp" DIRIf need be, you can expand it to make sure you're not overwriting in the case of files that already have EXIF time data.
Thanks, just modified the line you posted with alldates instead of datetimeoriginal, and included that into my tool :)