#9 copy photos from USB PTP and rename with exiftool and compress
How to copy photos from USB PTP camera?
If the camera is connecting to computer by USB and has set as a USB device, then we can copy those photos by gphoto2 and gphotofs.
You might need to unmount from a file manager if automounted as we need to Make sure no other program (gvfs-gphoto2-volume-monitor) or kernel module (su ch as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
Look around
#gphoto2 --summary #gphoto2 --auto-detect #gphoto2 --list-ports #gphoto2 --list-cameras #gphoto2 --list-folders #gphoto2 --abilities There is 1 folder in folder '/'. - store_10000001 There is 1 folder in folder '/store_10000001'. - DCIM There is 1 folder in folder '/store_10000001/DCIM'. - 129_FUJI There are 0 folders in folder '/store_10000001/DCIM/129_FUJI'.
Make a directory for mounting USB PTP camera
Mount USB PTP to the directory
Copy photos which was created today to current directory
Rename photos with exiftool
Today is 20230402.