flickr export - write date_taken to image so I can import in icloud

Started by starlette, December 23, 2021, 03:57:39 PM

Previous topic - Next topic

starlette

Hi Folks,

I am getting a bit lost in the ton of possibilities and try to get a "simple thing moving, adding the date_taken from an flicker export.
So I have the 2 dirs :

DIR/_TEST/
dsc01008_1490676326_o.jpg
beeld36_1489530941_o.jpg
blood-red-shoes-rotown_3108749116_o.jpg
blabla_122_3108755116_o.jpg
...

DIR/_TEST_JSON
photo_1485280366.json
photo_1508868412.json
....


exiftool -s on off of the json's shows :


ExifToolVersion                 : 12.38
FileName                        : photo_1283380284.json
Directory                       : /Users/xxx/Downloads/flickr_backup/_TEST_JSON
FileSize                        : 685 bytes
FileModifyDate                  : 2021:12:23 10:05:48+01:00
FileAccessDate                  : 2021:12:23 14:52:14+01:00
FileInodeChangeDate             : 2021:12:23 14:29:00+01:00
FilePermissions                 : -rw-rw-r--
FileType                        : JSON
FileTypeExtension               : json
MIMEType                        : application/json
Comment_permissions             : only you
Count_comments                  : 0
Count_faves                     : 0
Count_notes                     : 0
Count_tags                      : 0
Count_views                     : 22
Date_imported                   : 2007-08-30 23:50:27
Date_taken                      : 2007-08-08 10:13:45
Description                     :
Id                              : 1283380284
License                         : All Rights Reserved
Name                            : Nervous
Original                        : https://live.staticflickr.com/1263/128555555284_c0a7587eaf_o.jpg
Photopage                       : https://www.flickr.com/photos/xxxx/1283380284/
Privacy                         : private
Rotation                        : 0
Safety                          : safe
Tagging_permissions             : only you


So what I want is to write the Date_taken into all the files!
Hope someone can help me out here!

Chrz
Starlette

StarGeek

First of all, have you checked to see if you actually have to add the date to the original photo?  Flickr does not remove any data from the files you upload, so if you uploaded the file with a time stamp, you don't need to do anything. 

Run this command on one of the files
exiftool -time:all -G1 -a -s file.jpg

If you see a CreateDate or DateTimeOriginal tag, then you don't need to do anything, the time is already in the image and you don't want to overwrite it with possibly inaccurate data.

Otherwise, the main problem as I recall it (I haven't checked in a while) is that there isn't any correlation between the image file and the json file.  The filenames didn't match and there's nothing in the json file to match it to the actual file.  This seems to be borne out by the examples you list.  Do you see anything in the json file that allows matching to a file?
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).