jim-easterbrook / python-gphoto2

Python interface to libgphoto2
GNU Lesser General Public License v3.0
359 stars 59 forks source link

Writing exif data to camera #95

Closed dlwalter closed 4 years ago

dlwalter commented 4 years ago

Is there a way to write exif data to the files on the camera?

I'm looking to modify the exif gps location data either before the image is taken or after it is saved onto the SD Card, without downloading to the host computer.

jim-easterbrook commented 4 years ago

The libgphoto2 API documentation is here: http://www.gphoto.org/doc/api/

I think the only way to do what you want is to copy the image data to the computer with gp_camera_file_get, modify its Exif data (in memory), then copy it back with gp_camera_folder_put_file.