https://github.com/subbyte/iphone2lib
Import iphone photo/video to a file-system-based library
https://github.com/subbyte/iphone2lib
Last synced: 11 months ago
JSON representation
Import iphone photo/video to a file-system-based library
- Host: GitHub
- URL: https://github.com/subbyte/iphone2lib
- Owner: subbyte
- License: gpl-3.0
- Created: 2025-03-05T01:30:44.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-03-05T01:55:12.000Z (12 months ago)
- Last Synced: 2025-03-05T02:29:26.278Z (12 months ago)
- Language: Shell
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Import iphone Photo/Video to Library
Import all data in iphone `DCIM` directory to a file-system-based library.
## Library Organization
Files are renamed to `timestamp-checksum.ext`
- Timestamp is extracted with `exiftool`
- If no timestamp found, use latest timestamp from previous files
- Timestamp format: `+%Y%m%d-%H%M%S`
- Checksum is the first 8 chars of sha1sum of the file
- Extension is the original file extension in lower case
Library structure:
```
- Root
- Year
- Month
- File
```
## Requirements
- `exiftool`
## How to use
1. Mount your phone, e.g., using `ifuse`
2. Locate `DCIM` in the mounted directory
3. `iphone2lib DCIM_dir lib_dir >i2l.log 2>i2l.err`
4. Track the status with `tail -f i2l.log`
5. Check error in `i2l.err`