Help with Flickr Photos

Started by Vikas, March 30, 2021, 01:46:15 PM

Previous topic - Next topic

Vikas

I have close to 26,000 photos and videos in Flickr which are arranged in about 100+ albums. I downloaded one of the albums and observed that all of the EXIF data is intact except the 'created' and 'modified' date/time is changed to the date and time of downloading the particular album. I intend to change these fields to the original 'create' date. I need help with that.

Further, my idea is to do this album by album. Download the album and content thereof in a particular folder. Run the script to modify the create date and then move the folder to another destination directory / folder. Can I create the folder in destination directory/folder with the same name as the album name on Flickr.

Appreciate the support !


Vikas

Meant to add that there are videos along with pics in the folders/albums. I am assuming that tag for original create date for photos will be different that from pics?

StarGeek

Quote from: Vikas on March 30, 2021, 01:46:15 PMI downloaded one of the albums and observed that all of the EXIF data is intact except the 'created' and 'modified' date/time is changed to the date and time of downloading the particular album.

Sounds like that's the file system data, not the EXIF data.  So you would want to copy the EXIF timestamps to the file system timestamps.  Try this
exiftool "-FileModifyDate<DateTimeOriginal" "-FileCreateDate<DateTimeOriginal" /path/to/files/

Quote from: Vikas on March 30, 2021, 01:48:09 PMMeant to add that there are videos along with pics in the folders/albums. I am assuming that tag for original create date for photos will be different that from pics?

Video timestamps are a bit more complex.  According to the spec, the timestamp is supposed to be in UTC, but not all cameras will record it as such as they may not know the timezone. For a video, the command would be the same except you would most likely want to use CreateDate instead of DateTimeOriginal.

If you know the video didn't come from a source like a cell phone which would be aware of the time zone, then you would try
exiftool "-FileModifyDate<CreateDate" "-FileCreateDate<CreateDate" /path/to/files/

If the above command is off by the timezone, then you would want to add the -api QuickTimeUTC option
exiftool -api QuickTimeUTC "-FileModifyDate<CreateDate" "-FileCreateDate<CreateDate" /path/to/files/
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Vikas

Thanks Star Greek.
I am a Mac user. The below mentioned command did not work for me - I tried by giving the path to folder and path to file.


vikassinghal@VIKASs-MacBook-Air ~ % exiftool "-FileModifyDate<CreateDate"/Users/vikassinghal/Flickr/2015\ Sep\ Parul\'s\ Birthday/20150919_214104_21554971791_o.jpg
No file specified

OR


vikassinghal@VIKASs-MacBook-Air ~ % exiftool "-FileModifyDate<DateTimeOriginal"/Users/vikassinghal/Flickr/2015\ Sep\ Parul\'s\ Birthday
No file specified

I would like to run the command at folder lever to apply on files/pics in that folder

Vikas

This is exif info of one particular file :

ExifTool Version Number         : 12.22
File Name                       : 20150919_214104_21554971791_o.jpg
Directory                       : /Users/vikassinghal/Flickr/2015 Sep Parul's Birthday
File Size                       : 1593 KiB
File Modification Date/Time     : 2021:03:30 17:00:08+05:30
File Access Date/Time           : 2021:03:30 23:56:07+05:30
File Inode Change Date/Time     : 2021:03:30 22:32:01+05:30
File Permissions                : -rw-r--r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
Make                            : SAMSUNG
Camera Model Name               : SM-A300H
Orientation                     : Horizontal (normal)
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : A300HXXU1BOG4
Modify Date                     : 2015:09:19 21:41:03
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/17
F Number                        : 2.4
Exposure Program                : Program AE
ISO                             : 1250
Exif Version                    : 0220
Date/Time Original              : 2015:09:19 21:41:03
Create Date                     : 2015:09:19 21:41:03

Alan Clifford

Quote from: Vikas on March 30, 2021, 02:24:28 PM
Thanks Star Greek.
I am a Mac user. The below mentioned command did not work for me - I tried by giving the path to folder and path to file.


vikassinghal@VIKASs-MacBook-Air ~ % exiftool "-FileModifyDate<CreateDate"/Users/vikassinghal/Flickr/2015\ Sep\ Parul\'s\ Birthday/20150919_214104_21554971791_o.jpg
No file specified

exiftool '-FileModifyDate<CreateDate' /Users/vikassinghal/Flickr/2015\ Sep\ Parul\'s\ Birthday/20150919_214104_21554971791_o.jpg


You've missed a space between the argument and the filename.  I thought you'd need to change the " to ' but I tried it and apparently not.

StarGeek

Quote from: Alan Clifford on March 30, 2021, 04:03:54 PM
You've missed a space between the argument and the filename.  I thought you'd need to change the " to ' but I tried it and apparently not.

I believe it's necessary when there's a dollar sign to avoid interpreting the tag name as a shell variable.  This is a direct tag copy without any extras so it shouldn't be necessary.  But I would consider it a good habit to be in for Mac/Linux anyway.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Vikas

Thanks for your advice and suggestions. I am getting there but not fully.

I am going to be more descriptive in order to get the correct the command line that I can execute towards my objective.

Here I go -

1 - I have created a folder (Lets call it "Folder 1") which has download of all the contents from one of my Flickr Album and which is saved in the path "User/Vikas/Photos")
2 - This folder contains the following 3 files - "File 1.jpeg", "File 2.jpeg", "File 3.mov"
3 - I now want to change the value of "File Modification Date/Time" and "File Access Date/Time" to "Create Date"

Given above, how can I execute a command to accomplish the above. I want to avoid doing this for individual files in the folder. I would want to accomplish the stated outcome at folder level.

Please can you provide me the command line. Thanks much !

Phil Harvey

You can set the FileModifyDate using the command that Alan gave, but specify the directory name instead of the file name.

You can't set the FileAccessDate.

- 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 ($).