Share

gPhoto

Tracker: Bugs

5 Regression: --image-capture no longer works for Nikon D40 - ID: 1807795
Last Update: Comment added ( marcusmeissner )

With Gphoto2 2.3.1 the still image capture works fine with the Nikon D40.

However, with Gphoto2 2.4.0 the still image capture is broken.

Expected (output from 2.3.1):
$ gphoto2 --capture-image
New file is in location /store_00010001/DCIM/100NCD40/DSC_0001.JPG on the
camera
captures an image and save it on the sd card.

Actual (output from 2.4.0):
gphoto2 --capture-image
New file is in location /store_00010001/capt0000.jpg on the camera

However, when I use gphoto2 -L the file does not exist. (nor does it exist
if I take the SD card out and put it in a reader).

However, in the debug output, the file is downloaded to the computer (but
this is not saved to a disk).


So, basically,
2.3.1 --capture-image saves the image on the camera sd card.

2.4.0 --capture-image transfers the file on usb, but gphoto never saves it
anywhere (unless --debug --debug-logfile is used, and then it is saved as
part of the hex dump).

I am using manually compiled versions of gphoto and libgphoto (opensuse's
gphoto 2.4.0 is broken as well).

I tried using --camera="USB PTP Class Camera", but that did not work in
2.4.0 as well.


Josh Cogliati ( jjc ) - 2007-10-04 22:32

5

Closed

Fixed

Marcus Meissner

camlib/ptp2

None

Public


Comments ( 9 )

Date: 2008-10-17 06:13
Sender: marcusmeissnerProject Admin

2.4.2 and onwards now differ between --capture-image (leaves image on
camera) and --capture-image-and-download (retrieves and deletes image)


Date: 2007-12-11 13:11
Sender: jjc


Basically, I see two ways to fix the confusion:
1. When --capture-image is used alone (i.e. it would just capture to
memory and not actually save the image) just download it as if -I 1 -F 1
was done.
2. When -capture-image is used alone print a warning message something
like:
Warning: Capture to memory in use. Use interval capture or change
capturetarget to save to disk.


Either way, it would be useful to document this better in the --help
output and the manual page.

Thanks.



Date: 2007-12-10 22:22
Sender: joecarter


The interval capture works fine for the 5900.
The message about it downloading and then seeing no file threw me for
quite a while until I found this bug.
So down to just the problem jjc indicates. A fix could be to use the
interval capture to return the file
to the PC when just --capture-image is set.
Nothing too serious but very confusing to someone new to gphoto2 like me.


Date: 2007-12-10 21:10
Sender: marcusmeissnerProject Admin


we are just storing it virtually if it is named "capt000x.jpg".

reason for this is to get interval capture to work.

to download it in this mode
gphoto2 --capture-image -I 1 -F 1

If the 5900 bug is not the same as this, reopen a new bug.


Date: 2007-11-03 20:09
Sender: joecarter


This is also broken in the same way for a Nikon 5900.


Date: 2007-10-08 13:59
Sender: jjc


$ gphoto2 --get-config capturetarget
Label: Capture Target

Type: RADIO
Current: Internal RAM
Choice: 0 Internal RAM
Choice: 1 Memory card
$ gphoto2 --set-config capturetarget=1
gphoto2 --capture-image
New file is in location /store_00010001/DCIM/100NCD40/DSC_0003.NEF on the
camera


Okay. That worked.

So, down to one thing I think is an error:
By default "gphoto2 --capture-image" claims that it is storing it to the
card
output:
"New file is in location /store_00010001/capt0000.jpg on the camera"
despite that fact that it is not capturing it to the sd card.




Date: 2007-10-06 15:26
Sender: marcusmeissnerProject Admin


Please try:
gphoto2 --get-config capturetarget

it should have two choices?


Date: 2007-10-05 17:19
Sender: jjc


Well, the "gphoto2 --capture-image -F 1 -I 1" command does work with the
camera.

"gphoto2 --set-config capturetarget=card" does not work:
gphoto2 --set-config capturetarget=card

*** Error ***
Choice card not found within list of choices.

So, as I see it, there are two bugs:
1. "gphoto2 --set-config capturetarget=card" does not work, despite the
fact that 2.3.1 could capture to a card with the Nikon D40.
2. "gphoto2 --capture-image" claims that it is storing it to the card
output:
"New file is in location /store_00010001/capt0000.jpg on the camera"
despite that fact that it is not capturing it to the sd card.





Date: 2007-10-05 09:05
Sender: marcusmeissnerProject Admin


This means "capturetarget" is set to RAM.

to get the image in one go do:
gphoto2 --capture-image -F 1 -I 1
which will download it.

To save it on the card do;
gphoto2 --set-config capturetarget=card
gphoto2 --capture-image


Attached File ( 1 )

Filename Description Download
gphoto_tests.tar.gz Tar file with --debug --debug-logfile runs from both 2.3.1 and partial output from 2.4.0 Download

Changes ( 8 )

Field Old Value Date By
close_date - 2008-10-17 06:13 marcusmeissner
status_id Open 2008-10-17 06:13 marcusmeissner
resolution_id None 2008-10-17 06:13 marcusmeissner
close_date 2007-12-10 21:10 2007-12-11 13:11 jjc
status_id Pending 2007-12-11 13:11 jjc
close_date - 2007-12-10 21:10 marcusmeissner
status_id Open 2007-12-10 21:10 marcusmeissner
File Added 248384: gphoto_tests.tar.gz 2007-10-04 22:32 jjc