This project provides a small Bash script that does an incremental synchronization of the photos on your iPhone to a Linux machine.
It also exports all photos from HEIC to JPEG format in a separate directory.
- Incremental sync from iPhone photos to a local directory
- Export of all HEIC images to JPEG
- Fully automatic operation
Before you can run the script, please install the following packages:
sudo apt install libimobiledevice6 libimobiledevice-utils imagemagick
You simply run the script without any parameters.
./lips.sh
The script will create the following directories:
Directory | Purpose |
---|---|
~/mnt/iPhone |
Mount point for the iPhone (source from where to copy the files) |
<picture-dir>/iPhone/original_photos |
Directory to which the original photos are synched |
<picture-dir>/iPhone/exported_jpgs |
Target directory for JPGs convered from HEIC |
If you want to build the project, please install the following additional packages
sudo apt install shellcheck
To run static code analysis, please execute:
tools/shellcheck.sh