Hacker Newsnew | past | comments | ask | show | jobs | submit | open_'s commentslogin

My current process for offloading photos off the iPhone is to copy them in subsequent batches of '0-9999' from the 'Image Capture' app.

This is because I usually have far more than 10K photos and apple starts renaming the files after 9999 as 00001(1) for the rest. This is pretty undesirable.

Is there a way for me to export unmodified raw/jpeg/live/videos off the iphone to an external drive without a macbook with a large enough ssd, and wanting to use icloud as an intermediate bottleneck?


I use libimobiledevice on linux

plug iphone into usb. lsusb should show it.

I backup my photos with:

  sudo ifuse -o allow_other /mnt
  rsync -a /mnt/DCIM <photos-dir>
  sudo umount /mnt
Actually, I backup all of /mnt not just DCIM, but that answer is for you. I also backup the entire phone with:

  sudo idevicebackup2 backup <backup-dir>
but in this form it either does the photos as data files, or doesn't back them up. I think it is a complete backup.


Do you take into account the iPhone not holding the original images of every photo? It will offload originals and just keep thumbnails if the library is too large.

Mine is approaching 1.5TB, I’ve got no hope of keeping that all on an iPhone, and also no guarantee that any given photo is fully available locally.


Aren't there hooks on the filesystem layer that downloads them when you access them? E.g I can browse via terminal to my iCloud Drive somehow and cat etc works on files which aren't local (after locking to download them first).


> Do you take into account the iPhone not holding the original images of every photo?

If you have enough storage space on your iPhone, you can select "Download and Keep Originals" in the photo app settings.


I think the originals and edits are both there.

I don't know about space-optimized storage on-phone. I know one setting for transfer to mac or pc - I have it set to "keep originals" instead of "automatic". There might be other settings I'm not aware of.

EDIT: actually, there are other directories (under /mnt but outside DCIM in my example) that seem to have other photo stuff, maybe edits? ymmv


> My current process for offloading photos off the iPhone

I'm not sure about Linux, but my workflow on Windows and MacOS is to frequently back up my iPhone locally (which you should do anyway because few incorrect PINs can security lock your phone [1]) and use utility like backup extractor (e.g. [2] but there are many others) to extract all photos from the backup. This effectively removes the need to use iCloud.

[1]: https://support.apple.com/en-us/105090?device-type=iphone

[2]: https://github.com/joz-k/ios_backup_extractor


Does the PhotoSync app permit that? I use it to copy files to my NAS but it has some USB-related options I never explored. I used to use Image Capture but heard of PhotoSync and have never looked back.


With Photosync I have our photos export to my NAS and have it update the file names with the timestamp + original file name, which makes it so much more sane to sort through.

Example:

Original: IMG_9999.JPG

Server-side file: 2015.01.15__IMG_9999__.JPG


That looks like it might do the trick. I feel like this should be something possible only using first party apps but I'll take it! Thanks.


I use and like PhotoSync but I thought it doesn’t export unmodified originals but your edited versions. Personally I like this behavior better but that might not be what you want?

I’m not sure Apple allows any third party app to access the unmodified originals. Imagine you crop a photo to remove some embarrassing part. A third-party app can just recover that? What a privacy risk.

Of course this won’t matter if you don’t do any photo editing on iOS.


It's right to question this. I had taken https://www.photosync-app.com/support/basics/answers/does-ph... ("PhotoSync transfers the original, unaltered images including all EXIF and GPS data") on face value without thinking of all of the iCloud behavior. Even limited copies would suffice in my case, but that's insufficient for others.


I did it on Linux once I extracted them all as-is in the strange storage way that iOS stores them but I dont recall steps to make it mount the drive.


That would be perfect, I might chase down this path again. It's been a while since I've tried to directly mount the iphone as a drive on linux.


A pretty reductionist and a poor take.

"Standing on the shoulders of giants, it is clear that the giants failed to reach the heights we have reached."


Oh wow, it's you! Thank you so much for writing what is probably my top 3 software of all time (over a long period).


That makes for poor communication by increasing the friction to read someone's thoughts.

As an author, you should care about reducing friction and decreasing the cost to the reader.


Some onus is on the reader to educate themselves, particular on Hacker News.


Ironically, at least for me, your comment applies far more to your comment than the grandparent's.


So does yours! (and mine)


Your comment makes me want to re-read the hitchhiker's guide.


Apart from a few other factors, the biggest one that stands out is not stringing you along in a click-baity way, instead just asking a question and giving a direct answer right after the question and in simple direct words.

No dark patterns to make you spend a longer time on the webpage for ad metrics.


> AMIE?

I think they mean 'Mon Ami'


This is quite a valuable comment that I agree with 100% and from what I understand, a highly unpopular opinion. I hope more people see this.


There is consensus documenting why you did something is good (which is what root comment is talking about). Documenting what you did is commonly thought to be a crutch for writing unreadable code.


I hate the second thought, because not documenting is clearly not stopping people from committing the unreadable code. Instead we get "my code is self-documenting, I'm not going to write documentation".

And as for the third opinion of "the documentation becomes out of date when the code changes", I would prefer slightly incorrect comments to decipher code rather than no comments to decipher code. Doubly so because I can compare the comments to historical revisions.


While I _absolutely_ agree with those sentiments, I have seen nothing like consensus on them myself (in mostly tech startups, but also fintech, and financial (yes, those are different things)). If I limit it to programmers I respect, the percentages go up, but to _maybe_ 75% tops.


The idea that code should communicate intent, whether by comments or other means, is popular and common. It ends up being somewhat difficult to execute. In practice, you have to write code like you write prose. Keep your audience in mind, and be aware of the contextual information available to that audience, and write code that will make sense to your particular audience, ignoring the needs of non-audiences. The tricky part is when your audience includes people in the future. But even how you account for a future of missing design docs and broken links will vary based on things like team composition, business/problem domain, is this open-source or not, etc.


Or they could launch some much lower hanging fruit and wait for stock price to appreciate by that much or more. A car company, no matter how small, is very, very hard.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: