r/coolgithubprojects • • 16h ago

iPhone Sync – free, open-source tool to import iPhone photos/videos to Windows without duplicates (42 GB in 22 min)

https://github.com/eduardmihaila/iphone-sync
47 Upvotes

10 comments sorted by

1

u/footyballymann 16h ago

How did you do this?

>iPhone Sync counts those files, outlines them in amber, and tells you to download them first (Settings Photos Download and Keep Originals).

3

u/Complex_Drop_7218 15h ago

Good question! It's simpler than it sounds.

iPhone Sync reads the camera roll directly over USB through Apple's file protocol (AFC, via pymobiledevice3), the same one Windows uses to see the DCIM folder. When "Optimize iPhone Storage" is on and an original has been offloaded to iCloud, the file is still listed in /DCIM, but the phone reports it with a size of 0 bytes: it's just a placeholder, the real data isn't on the device.

So during the scan the app stats every file, and anything with size 0 goes into an "only in iCloud" bucket instead of the copy queue. Those files are counted, shown with an amber outline in the grid, and the final summary tells you to download them first (Settings > Photos > Download and Keep Originals) before deleting anything from the phone. Otherwise you'd delete the only copy.

If you're curious, the logic is in `_scan()` in iphone_sync/engine.py:

https://github.com/eduardmihaila/iphone-sync

1

u/TutsLeau 3h ago

Great tool! But if for example I have no space in my phone to update the iOS version, can I copy files, delete them all on my phone, update its firmware and copy them back to my phone from PC? It would be useful

1

u/Complex_Drop_7218 3h ago

Thanks! Yes, you can already do the first part: copy everything to your PC with iPhone Sync, then delete it from your phone. Just don't forget to also empty "Recently Deleted", otherwise the space won't be freed.

But there's an easier way: update iOS from your PC. Plug in your phone, open the Apple Devices app (or iTunes) and click "Check for Update". The PC downloads the update for you, so your phone needs much less free space. You don't have to move your photos at all.

Copying photos back to the iPhone isn't possible right now, because Apple doesn't let a PC put photos straight into the Photos app. But I could add it: I'd build a small iPhone app that works together with iPhone Sync. The PC would send the photos, and the iPhone app would put them back into your Photos app. It's not ready yet, but it's on my list. Thanks for the idea!

0

u/Complex_Drop_7218 16h ago

I couldn't find a free tool that moved photos from my iPhone to my Windows PC quickly, kept the originals untouched and told me clearly when it was safe to delete them. So I built one (MIT license).

- Copies directly over USB with Apple's own protocol, several files in parallel: 42 GB in 22 minutes

- Original HEIC/MOV files, renamed in chronological order

- No duplicates: every file is hashed, even photos already on the PC under another name

- Tells you what is safe to delete, including originals that only exist in iCloud

- Never touches the Hidden album

- Pick photos from a gallery or import everything new; also works over Wi-Fi

No accounts, no telemetry, no ads. Single .exe in the Releases page.

AI disclosure: I'm a cloud engineer, not a full-time developer. I designed and tested it, and wrote most of the code with AI (Claude). Feedback and code reviews welcome!

1

u/ethicalhumanbeing 14h ago

LocalSend

3

u/Complex_Drop_7218 13h ago

LocalSend is great, I used it before building this! Different job though.

Cable vs Wi-Fi: about 31 MB/s over USB (42 GB in 22 min) vs the 5–7 MB/s I got with LocalSend, so roughly 4–6x faster on my setup.

Nothing to install on the iPhone: no app to keep open, and the transfer doesn't stop when the screen locks.

Built for emptying the camera roll safely: original HEIC/MOV files, no duplicates (every file is hash-checked), a warning about originals that are only in iCloud before you delete them, the Hidden album is skipped, and at the end it tells you what's safe to delete.

For sending random files between devices I'd still pick LocalSend. For backing up a whole camera roll to Windows, that's why I made this.

1

u/ethicalhumanbeing 13h ago

Totally. I was just saying it was a viable option for the things you mentioned.

2

u/Complex_Drop_7218 13h ago

It just depends on the use case: if you're a photographer offloading tens of GB at a time, the cable route saves a lot of time.