Yaky's

Accessing and converting iPhone photos on Linux

Instructions are for Debian or derivatives.

One-Time Setup

Install FUSE module for iPhone and converter for HEIC images:
sudo apt install ifuse libheif-examples
Create a new directory that will be used as the mount point for iPhone. Mine is in the home directory:
mkdir $HOME/iphone

Process

Connect the iPhone to the Linux machine, click "Trust" on iPhone.
On Linux machine, run:
ifuse $HOME/iphone
Copy images from $HOME/iphone/DCIM onto your machine.

To convert HEIC images to JPEG, run this snippet in the directory with images:
for f in *.HEIC; do heif-convert -q 100 $f $f.jpg; done