r/coolgithubprojects • • 3h 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
5 Upvotes

7 comments sorted by

1

u/footyballymann 3h 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).

1

u/Complex_Drop_7218 2h 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/Complex_Drop_7218 3h 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 1h ago

LocalSend

1

u/Complex_Drop_7218 27m 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 22m ago

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

1

u/Complex_Drop_7218 4m 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.