gphoto2 icon indicating copy to clipboard operation
gphoto2 copied to clipboard

Canon EOS 850D capture in sd but download empty file

Open gentilmente opened this issue 2 years ago • 3 comments

HI, thanks for this awesome work! Describe the bug

--capture-image-and-download, downloads empty file but --capture-image and then --get-file <number> works fine

Name the camera Canon EOS 850D

gphoto2 --summary Device Capabilities: File Download, File Deletion, File Upload No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Capture 2 Canon Wifi support

libgphoto2 and gphoto2 version gphoto2 2.5.28 clang, popt(m), exif, no cdk, no aa, jpeg, readline libgphoto2 2.5.28 standard camlibs, clang, no ltdl, no EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb1, clang, no ltdl, no EXIF, USB, serial without locking

To Reproduce have this camera model and exec those commands

This make me think, why --capture-image-and-download doesn't work if I can do both actions one after the other? And what is Canon EOS Capture listed with --summary? how can I use that? thank you

gentilmente avatar Feb 14 '22 18:02 gentilmente

I think the problem comes from getting de path of the photo in camera. gphoto2 --capture-image-and-download
New file is in location /capt0000.jpg on the camera Saving file as capt0000.jpg Deleting file /capt0000.jpg on the camera The file in disk take that name and is empty

but if I do gphoto2 --list-files
There is no file in folder '/'.
There is no file in folder '/store_00020001'. There is no file in folder '/store_00020001/DCIM'. There is 1 file in folder '/store_00020001/DCIM/100CANON'. #1 IMG_0118.JPG rd 4926 KB image/jpeg 1645226172 There is no file in folder '/store_00020001/MISC'.

the real name is IMG_0118.JPG

so if I do gphoto2 --get-file /store_00020001/DCIM/100CANON/IMG_0118.JPG Saving file as IMG_0118.JPG And photo is downloaded OK.

Maybe this helps to found and fix to make this model included

gentilmente avatar Feb 19 '22 02:02 gentilmente

same issue on Canon EOS 650D :-(

newluhux avatar Jul 12 '22 01:07 newluhux

can you get a debuglogfile of the failing capture? canons support 2 different capture targets, RAM (usually the /capt0000.jpg ones) and SD-CARD (the DCIM/.../IMG_ paths) but it should not create empty files.

msmeissn avatar Jul 23 '22 09:07 msmeissn

no reply received, reopen if you can reproduce and provide a logfile

msmeissn avatar Sep 17 '22 12:09 msmeissn