ExifTool Forum

General => Metadata => Topic started by: ct_san on March 25, 2023, 09:19:22 AM

Title: Photo from Icloud
Post by: ct_san on March 25, 2023, 09:19:22 AM
hi, need help.
I downloaded my photos from Icloud, they are all with the wrong date, but with the photo there was a provided CSV file with information in this form:

imgName,fileChecksum,favorite,hidden,deleted,originalCreationDate,viewCount,importDate
IMG_5657.MOV,AVktkr69Z/JdTa4I73kmGI8AdwUr,no,no,no,"Friday March 10,2023 2:08 PM GMT",11,"Friday March 10,2023 2:10 PM GMT"
IMG_1956.JPG,AR14Tx2xvlTxkQVCq8zkF1p0fHJF,no,no,no,"Saturday June 27,2020 3:30 PM GMT",0,"Saturday June 27,2020 3:30 PM GMT"
IMG_4428.PNG,AWZfxP/iMOTd432DLdNheV9KL5UJ,no,no,no,"Sunday February 7,2021 10:13 AM GMT",0,"Sunday February 7,2021 10:13 AM GMT"
IMG_04671.JPG,Ab5gWoGqlRCBKU0y6n/AWcA6Dy3N,no,no,no,"Sunday June 3,2018 7:41 PM GMT",0,"Sunday June 3,2018 7:41 PM GMT"
IMG_04661.JPG,AQHKZTdD0JeekXvgRjS7hegYUkNd,no,no,no,"Sunday June 3,2018 7:41 PM GMT",0,"Sunday June 3,2018 7:41 PM GMT"
IMG_72221.HEIC

I changed the file to this:
SourceFile,originalCreationDate
F:\Photos\IMG_00602.MOV,2021:07:05 00:59:00
F:\Photos\IMG_0161.HEIC,2021:09:23 18:55:00
f:\photos\IMG_64551.HEIC,2021:08:02 12:57:00
f:\photos\IMG_9434.HEIC,2021:12:01 14:36:00
f:\photos\IMG_17272.HEIC,2019:03:02 19:35:00
f:\photos\IMG_8138.HEIC,2021:09:12 20:02:00
f:\photos\IMG_6757.HEIC,2021:08:04 17:59:00
f:\photos\IMG_2330.JPG,2020:08:04 11:06:00
f:\photos\IMG_9787.HEIC,2021:12:22 16:03:00
f:\photos\IMG_9509.HEIC,2021:12:04 19:35:00
f:\photos\IMG_1417.JPG,2018:08:26 00:01:00
and used this command:

f:\Photos>exiftool -csv="f:\photos\details.csv" -ext MOV -ext JPG -ext HEIC "-FileModifyDate<originalCreationDate" -r "f:\photos\"
to which he writes to me:

     1 directories scanned
     0 image files read



There are files, the path to them is specified correctly.

What am I doing wrong?

Title: Re: Photo from Icloud
Post by: Phil Harvey on March 25, 2023, 09:51:58 AM
Very odd.  What does this command show?:

dir "f:\photos\"

- Phil
Title: Re: Photo from Icloud
Post by: ct_san on March 25, 2023, 09:59:45 AM
f:\Photos>dir "f:\photos\"
 Том в устройстве F не имеет метки.
 Серийный номер тома: 0A70-FE2C

 Содержимое папки f:\photos

25.03.2023  13:06    <DIR>          .
21.03.2023  06:11           510 202 0289148D-800D-4399-8964-8E3E009BAF61.jpg
21.03.2023  06:11           495 228 0321FB25-3020-4281-A3B2-3BA447451DDD.jpg
21.03.2023  06:56           927 525 03B60B1B-D472-4FA7-B45A-BEB05EB7B790.jpg
21.03.2023  06:10           461 628 0802CC9D-3013-4D36-90FF-A8A69D682BF1.jpg
21.03.2023  06:53           894 374 09A76187-DCD3-4079-8A94-EA5C2B90AE55.jpg
21.03.2023  06:11           489 122 0BE63987-A18F-43F9-828E-0564DDCB686A.jpg
21.03.2023  06:55           917 421 0CEFE435-6B9C-40B6-9258-2756FAFD41A6.jpg
21.03.2023  06:10           465 502 0D63539B-748D-427D-8E90-27761E7F4179.jpg
21.03.2023  06:56           929 965 112210BC-09A6-47B6-A0FC-862BC7CD4E1A.jpg
21.03.2023  06:12           523 408 1223E5AC-8F1E-479B-AC85-5441F8174CD3.jpg
21.03.2023  06:11           496 445 135c761454074ab5b625915e8cb7f078.mov
21.03.2023  06:13           570 248 1673D7B4-25F4-4175-BFA4-64CA902E7BE7.jpg
21.03.2023  06:54           908 663 18148C2A-1BF4-4042-9118-77AED1967914.jpg
21.03.2023  06:11           476 355 18CDC6F7-0810-44CC-9D24-E6C40EDFB36B.jpg
21.03.2023  06:11           499 278 1B169935-30A3-4B23-AC4A-8F2CFABD3860.jpg
21.03.2023  06:10           434 562 1E088FAD-0D39-4708-BFF9-28C539E25990.jpg
21.03.2023  06:11           485 636 20151128_111816_Original.jpg
21.03.2023  06:11           467 798 20151128_111854_Original.jpg
21.03.2023  06:56           942 951 20151128_115436_Original.jpg
21.03.2023  06:11           490 399 20151128_132016_Original.jpg
21.03.2023  06:10           464 717 20151128_135427_Original.jpg
21.03.2023  06:11           517 904 20151203_165236_Original.jpg
21.03.2023  06:13           577 395 217AF7C8-70FA-4721-BDA8-A50946EC90CD.jpg
21.03.2023  06:12           537 703 28907C2D-73BC-467C-8486-066D71185F62.jpg
21.03.2023  06:52           880 301 29823700-1E7F-4CBD-814B-F30DCEB91962.jpg
21.03.2023  06:12           556 646 2AC8B6B8-4CE0-44FA-914F-D19B38A4D293.jpg
21.03.2023  06:11           494 488 32376F0B-736D-4CC1-89AB-3863478D4E61.jpg
21.03.2023  06:10           445 847 32A32628-9B4D-49AD-AF82-773E22692B60.jpg
21.03.2023  06:12           541 089 33493783-B805-423D-97A4-1AA9875A0AAD.jpg
21.03.2023  06:10           450 295 348F6389-A7CC-4850-B5AE-AA10333DAE04.jpg
21.03.2023  06:10           443 092 3ADC7C85-9024-470F-8F1F-2C478A62F562.jpg
21.03.2023  06:12           567 218 3B673205-E1B8-4118-A92F-EA8FFE5F012F.jpg
21.03.2023  06:10           438 495 3E6DFDDF-5CBB-4149-B3A9-88181A76215D.jpg
21.03.2023  06:10           436 296 3EE4BCA0-2D84-403D-9228-ADC5496BAF15.jpg
21.03.2023  06:11           520 417 406900CC-B502-4AFB-92D5-B2334E47215D.jpg
21.03.2023  06:10           443 266 414FB0D9-607E-44E1-9D75-6C70ED2DB2F1.jpg
21.03.2023  06:11           506 591 43FC3EF6-E377-4345-ADEC-F0E67C6192BB.jpg
21.03.2023  06:11           476 580 441C5F7D-94AE-4D45-8456-410734B816AB.jpg
21.03.2023  06:13           582 135 4CC011C4-6EBD-4CE5-B658-C971E6BD29D6.jpg
21.03.2023  06:11           485 453 4F7A80DE-9B9D-4855-8319-875351B1004E.jpg
21.03.2023  06:11           504 163 5312058D-5569-4451-B7B6-71F8937D680A.jpg
21.03.2023  06:54           901 400 563FC77C-E960-41B4-8743-CEC0323DA952.jpg
21.03.2023  06:11           506 729 583581E4-B843-49BF-9C93-4D57F5FED09D.jpg
21.03.2023  06:52           879 086 59587EE7-581B-4EF0-BBA5-CFEAE3839007.jpg
21.03.2023  06:12           551 961 5A3DE34F-5A6F-40AD-AC76-3FAB7E55A0E7.jpg
21.03.2023  06:11           495 770 5BECA3E3-3AFC-4762-B03D-16F225572ACF.jpg
21.03.2023  06:10           435 956 603AB4AA-AEDB-4737-8406-5C1DBD18A540.jpg
21.03.2023  06:52           879 352 6266B854-1E33-4C16-9E66-C3924B6E89BC.jpg
21.03.2023  06:12           525 101 64DCA8D6-C8D5-4584-A9F1-E635D118F78B.jpg
21.03.2023  06:10           451 572 65E80147-C010-49B9-9D65-C046A6EB33F9.jpg
21.03.2023  06:11           484 312 68FB7FA5-ECFC-451E-B234-FE1247B7090A.jpg
21.03.2023  06:11           496 399 6bdc112a91474ff0ba6bfaa05e175569.mov
21.03.2023  06:53           888 589 6C2108DD-0A14-4A5D-A863-B4A0EC2C2BE7.jpg
21.03.2023  06:11           482 378 6C473EA9-B29F-4261-B233-08B86EBCE68D.jpg
21.03.2023  06:12           525 078 700B75AB-A8B6-43BC-87A9-10BD71E38E4C.jpg
21.03.2023  06:11           501 508 707D4BB4-F7D6-41B6-B519-FE7D5A193D39.jpg
21.03.2023  06:12           542 041 70F5836B-CC88-4639-9EDD-BC0174F5B748.jpg
21.03.2023  06:55           916 368 7524937264_IMG_9614.JPG
21.03.2023  06:56           941 318 7524946960_IMG_9454.JPG
21.03.2023  06:12           523 005 7545F8D8-31ED-43D0-AC4A-EBBB9FF67BE1.jpg
21.03.2023  06:10           430 549 76422142-0ECC-4911-8E63-B511694D41FB.jpg
21.03.2023  06:11           492 255 7782FA8E-4D24-41B7-8046-D8405234D4A8.jpg
21.03.2023  06:55           916 781 78BEA840-BE9B-4DB0-B575-427C05064467.jpg
21.03.2023  06:12           532 745 7945F37B-DF36-45CC-B7FA-6627A699E0DC.jpg
....
Title: Re: Photo from Icloud
Post by: Phil Harvey on March 25, 2023, 10:01:25 AM
OK, now how about this command:?

exiftool -filemodifydate "f:\photos\"

- Phil
Title: Re: Photo from Icloud
Post by: ct_san on March 25, 2023, 10:03:12 AM
f:\Photos>exiftool -filemodifydate "f:\photos\"
    1 directories scanned
    0 image files read
Title: Re: Photo from Icloud
Post by: Phil Harvey on March 25, 2023, 10:06:20 AM
We have seen some very weird behaviour in Windows filesystems.  We could have seen something like this in the past but I can't recall the issue.

Maybe @StarGeek or some other Windows-type person has an idea.

- Phil
Title: Re: Photo from Icloud
Post by: ct_san on March 25, 2023, 10:17:17 AM
I have windows 11, just tried on windows 10 on another pc. no difference.

if you try to do it in linux. will this help?
Title: Re: Photo from Icloud
Post by: Phil Harvey on March 25, 2023, 10:27:48 AM
You can run some other tests to narrow down the problem.

Does ExifTool work with files on other disks?  If not, try re-installing ExifTool.  But if it does, try a file in another directory on drive F:.  Check the file permissions.  Be sure the file name doesn't have a hidden character in the extension (eg. "file.jpg ").  Try dragging and dropping one of the files that doesn't work onto the command line instead of using a directory name.

- Phil
Title: Re: Photo from Icloud
Post by: ct_san on March 25, 2023, 11:03:08 AM
it didn't work :'(
Title: Re: Photo from Icloud
Post by: Phil Harvey on March 25, 2023, 11:23:49 AM
Nothing worked from all the tests I suggested?

I don't understand how that could happen.

Maybe try the alternate Windows version of ExifTool (https://oliverbetz.de/pages/Artikel/ExifTool-for-Windows).

- Phil
Title: Re: Photo from Icloud
Post by: Phil Harvey on March 25, 2023, 09:15:13 PM
I just remembered an issue on Windows with arguments ending in \".  I think the backslash escapes the trailing quote.  So try using forward slashes instead:

exiftool -filemodifydate "f:/photos/"

(Why backslashes would work with the "dir" command and not exiftool, I don't know.)

- Phil
Title: Re: Photo from Icloud
Post by: StarGeek on March 27, 2023, 11:39:06 AM
Or double the backslash "f:\photos\\"
Or just not use quotes when they aren't needed f:\photos\