Photo order messed up when switching android to ios.

I made the mistake of choosing to back up WhatsApp after using move-to-ios and ended up with 4 thousand pictures from WhatsApp all uploading on one day and out of order. I had them saved in my gallery and Google Photos chronologically before the switch.


The Apple Photos gallery and Google Photos on my new phone reflect the change, but the gallery on my Samsung remains intact in the order I want the photos to be in. How do I restore my Apple and/or Google galleries to reflect the old Android one? 


I'd like to avoid doing move-to-ios again because I'd have to factory reset my iPhone and re-login to all of my apps but if that's what I have to do then fine. I'm worried that if I do that, Google Photos will ruin the gallery order on my Samsung... will it? 


My Samsung also miraculously died and won't turn on so I'll have to spend 100 bucks to fix the battery :/ 


My other option seems to be meticulously going through all 4 thousand photos on google photos and changing the date manually. I honestly wouldn't even mind doing this, but I've heard that that data doesn't stay with the photos when you export them from google photos. is that true? It also doesn't sync these changes with the apple photos library which is a pain. 


I'm at my wits end here trying to figure this out. Any help would be greatly appreciated. 


iPhone 16, iOS 18

Posted on Oct 7, 2024 4:10 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 9, 2024 3:03 AM

rugbtt wrote:

Do any of those exif data tools work on apple?

exiftool and GraphicConverter work on the Mac.


WhatsApp stores the date when the image or movie was sent or received (not when it was shot) in its database and you can check that date from there, if possible. I recently had to do this when my son sent me old WhatsApp images. That was clumsy although there were just two dozen images (sadly the filenames provided no clue about those dates).


What kind of filenames do your old WhatsApp images and movies have?


WhatsApp often stores that date also in the filename which depending on its version can vary. As long as the filename contains 14 numbers representing the year month day hour minute second in that order (YYYY-MMDD-hhmm-ss, for example), you can quite easy copy the filename to the internal metadata date (and also the less important file creation and modification dates) en masse with exiftool.


You can do the same also with GraphicConverter although it is more strict about the number and letter pattern so you might have to edit the pattern or use GC "Change filename" dialog.


Filenames like these work with a simple exiftool command:


WhatsApp Image 2001-06-01 at 12.00.00.jpeg

PHOTO-2001-06-01-12-00-00.jpg

WhatsApp Video 2001-06-01 at 12.00.00.mp4

VIDEO-2001-06-01-12-00-00.mp4

VID_20010601_120000.mp4


Copy WhatsApp filename to image metadata:


exiftool -m -overwrite_original -ext jpg -ext jpeg -ext heic -ext png -ext webp '-AllDates<FileName' '-FileCreateDate<FileName' '-FileModifyDate<FileName' .


Copy WhatsApp filename to movie metadata:


exiftool -m -overwrite_original -ext mp4 -ext m4v -ext mov -wm w -api LargeFileSupport=1 -api QuickTimeUTC=1 '-AllDates<FileName' '-Track*Date<FileName' '-Media*Date<FileName' '-Keys:CreationDate<FileName' '-FileCreateDate<FileName' '-FileModifyDate<FileName' .


This assumes that you are in the same time zone as where the movie was shot. If the time zone is different, then set +00:00 to the proper time zone, i.e -04:00, +03:00, etc (for example daylight saving time New York EDT -04:00):


exiftool -m -overwrite_original -ext mp4 -ext m4v -ext mov -wm w -api LargeFileSupport=1 -api QuickTimeUTC=1 -api TimeZone=America/New_York '-AllDates<FileName' '-Track*Date<FileName' '-Media*Date<FileName' '-Keys:CreationDate<FileName' '-FileCreateDate<FileName' '-FileModifyDate<FileName' .


https://en.wikipedia.org/wiki/List_of_tz_database_time_zones


Or more clumsily in Windows which does not support TZ names:


exiftool -m -overwrite_original -ext mp4 -ext m4v -ext mov -wm w -api LargeFileSupport=1 -api QuickTimeUTC=1 '-AllDates<${FileName}-04:00' '-Track*Date<${FileName}-04:00' '-Media*Date<${FileName}-04:00' '-Keys:CreationDate<${FileName}-04:00' '-FileCreateDate<${FileName}-04:00' '-FileModifyDate<${FileName}-04:00' .


Some other name variations that need fine-tuned commands (these commands edit only internal metadata dates, not file dates):


IMG_20010601-WA0074.JPG:


exiftool -m -P -overwrite_original '-AllDates<${FileName;/(\d{8})/ and $_=$1} 00:00:00' .


2001-6-1 MVI_0099 2.jpg:


exiftool -m -P -overwrite_original '-AllDates<${FileName;s/MVI.*$//i} 00:00:00' .


2001-06-01-999.jpg:


exiftool -m -P -overwrite_original '-AllDates<${Filename;m/(\d{4}-\d\d-\d\d)/;$_=$1} 00:00:00' .

Similar questions

3 replies
Question marked as Top-ranking reply

Oct 9, 2024 3:03 AM in response to rugbtt

rugbtt wrote:

Do any of those exif data tools work on apple?

exiftool and GraphicConverter work on the Mac.


WhatsApp stores the date when the image or movie was sent or received (not when it was shot) in its database and you can check that date from there, if possible. I recently had to do this when my son sent me old WhatsApp images. That was clumsy although there were just two dozen images (sadly the filenames provided no clue about those dates).


What kind of filenames do your old WhatsApp images and movies have?


WhatsApp often stores that date also in the filename which depending on its version can vary. As long as the filename contains 14 numbers representing the year month day hour minute second in that order (YYYY-MMDD-hhmm-ss, for example), you can quite easy copy the filename to the internal metadata date (and also the less important file creation and modification dates) en masse with exiftool.


You can do the same also with GraphicConverter although it is more strict about the number and letter pattern so you might have to edit the pattern or use GC "Change filename" dialog.


Filenames like these work with a simple exiftool command:


WhatsApp Image 2001-06-01 at 12.00.00.jpeg

PHOTO-2001-06-01-12-00-00.jpg

WhatsApp Video 2001-06-01 at 12.00.00.mp4

VIDEO-2001-06-01-12-00-00.mp4

VID_20010601_120000.mp4


Copy WhatsApp filename to image metadata:


exiftool -m -overwrite_original -ext jpg -ext jpeg -ext heic -ext png -ext webp '-AllDates<FileName' '-FileCreateDate<FileName' '-FileModifyDate<FileName' .


Copy WhatsApp filename to movie metadata:


exiftool -m -overwrite_original -ext mp4 -ext m4v -ext mov -wm w -api LargeFileSupport=1 -api QuickTimeUTC=1 '-AllDates<FileName' '-Track*Date<FileName' '-Media*Date<FileName' '-Keys:CreationDate<FileName' '-FileCreateDate<FileName' '-FileModifyDate<FileName' .


This assumes that you are in the same time zone as where the movie was shot. If the time zone is different, then set +00:00 to the proper time zone, i.e -04:00, +03:00, etc (for example daylight saving time New York EDT -04:00):


exiftool -m -overwrite_original -ext mp4 -ext m4v -ext mov -wm w -api LargeFileSupport=1 -api QuickTimeUTC=1 -api TimeZone=America/New_York '-AllDates<FileName' '-Track*Date<FileName' '-Media*Date<FileName' '-Keys:CreationDate<FileName' '-FileCreateDate<FileName' '-FileModifyDate<FileName' .


https://en.wikipedia.org/wiki/List_of_tz_database_time_zones


Or more clumsily in Windows which does not support TZ names:


exiftool -m -overwrite_original -ext mp4 -ext m4v -ext mov -wm w -api LargeFileSupport=1 -api QuickTimeUTC=1 '-AllDates<${FileName}-04:00' '-Track*Date<${FileName}-04:00' '-Media*Date<${FileName}-04:00' '-Keys:CreationDate<${FileName}-04:00' '-FileCreateDate<${FileName}-04:00' '-FileModifyDate<${FileName}-04:00' .


Some other name variations that need fine-tuned commands (these commands edit only internal metadata dates, not file dates):


IMG_20010601-WA0074.JPG:


exiftool -m -P -overwrite_original '-AllDates<${FileName;/(\d{8})/ and $_=$1} 00:00:00' .


2001-6-1 MVI_0099 2.jpg:


exiftool -m -P -overwrite_original '-AllDates<${FileName;s/MVI.*$//i} 00:00:00' .


2001-06-01-999.jpg:


exiftool -m -P -overwrite_original '-AllDates<${Filename;m/(\d{4}-\d\d-\d\d)/;$_=$1} 00:00:00' .

Oct 7, 2024 11:20 PM in response to rugbtt

Did I get this right: In WhatsApp the images are (approximately) in the correct order, but in Google Photos and Apple Photos they are not?


Social media sites like WhatsApp, Facebook etc delete internal metadata like dates and locations and save the sent or received date only in WhatsApp database. So when those images are sent elsewhere it is often difficult to guess on which date the images were received or sent, not to mention when they were originally shot.


Some WhatsApp versions insert the date to the filename which can used as a clue to the approximate date. 3rd party apps like GraphicConverter and exiftool can copy that date in the filename to the internal metadata EXIF date, and file dates.


If you have edited dates, locations, or captions in GooglePhotos, you can use the old or possibly the new Google takeout to copy that info to Apple Photos. I briefly tested the new Google takeout and was not impressed, though.


https://exiftool.org/forum/index.php?topic=16519.msg88747#msg88747

Oct 8, 2024 6:04 AM in response to Matti Haveri

Thank you for the response!


It's unfortunate that they strip the metadata. It's caused a massive headache for me and clearly many others.


The only gallery that has the photos in the order I want them in is my Samsung's stock gallery app. I'm just a bit unclear on how to seamlessly transport that entire gallery to my new iPhone without accidentally ruining the chronological order with it syncing to google photos. I'd like to have them in the correct order in google photos as well.


Do any of those exif data tools work on apple? I saw someone recommend Metapho for Ios

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Photo order messed up when switching android to ios.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.