Difference between revisions of "Libgphoto2"

From ArchWiki
Jump to: navigation, search
m (Style, removed rawtherapee as it seems unrelated to libgphoto2)
m (Larivact moved page Digital Cameras to Libgphoto2: article is about Libgphoto2)
 
(34 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[[Category:Imaging]]  
+
[[Category:Imaging]]
 
[[es:Digital Cameras]]
 
[[es:Digital Cameras]]
 
[[it:Digital Cameras]]
 
[[it:Digital Cameras]]
[[ja:Digital Cameras]]
+
[[ja:デジタルカメラ]]
[[ru:Цифровые камеры]]
+
[[ru:Digital Cameras]]
{{Article summary start}}
+
[[zh-hans:Digital Cameras]]
{{Article summary text|Infos on digital cameras support.}}
+
{{Related articles start}}
{{Article summary heading|Related}}
+
{{Related|Jalbum}}
{{Article summary wiki|Jalbum}}: Freeware for creating professional albums/galleries.
+
{{Related articles end}}
{{Article summary wiki|HCL/Digital Cameras}}: Partial list of supported cameras for gphoto2.
+
This article documents the configuration of {{ic|libgphoto2}} to access digital cameras. Some digital cameras will mount as normal [[USB storage devices]] and may not require the use of libgphoto2.
{{Article summary end}}
 
This article documents the configuration of {{ic|libgphoto2}} to access digital cameras. Some digital cameras will mount as normal [[USB Storage Devices|USB storage devices]] and may not require the use of libgphoto2.
 
 
 
{{Note|As of libgphoto2 version 2.14.13, users do not need to be part of the {{ic|camera}} group.}}
 
  
 
== libgphoto2 ==
 
== libgphoto2 ==
Line 20: Line 16:
 
=== Installation ===
 
=== Installation ===
  
[[pacman|Install]] {{Pkg|libgphoto2}} from the [[official repositories]], and optionally {{Pkg|gvfs-gphoto2}} for Nautilus integration and {{Pkg|gphoto2}} to have a command line interface.
+
[[Install]] the {{Pkg|libgphoto2}} package, and optionally {{Pkg|gvfs-gphoto2}} for [[GNOME Files]] integration and {{Pkg|gphoto2}} to have a command line interface. Actually, any package that lists {{Pkg|gvfs}} as a dependency can use gvfs-gphoto2, such as [[Nemo]], [[PCManFM]], and [[Thunar]].
  
 
=== Permission issues ===
 
=== Permission issues ===
  
Users with a local session have permissions granted for cameras using [[Wikipedia:Access control list|ACLs]]. See [[General Troubleshooting#Session permissions]] if it does not work.
+
Users with a local session have permissions granted for cameras using [[Wikipedia:Access control list|ACLs]]. See [[General troubleshooting#Session permissions]] if it does not work.
 
 
If you want these permissions to work for remote ([[SSH]]) sessions too, you can use the old 'camera' group, by adding the requisite users to the deprecated camera group and create a new udev rules file as follows:
 
 
 
# /usr/lib/libgphoto2/print-camera-list udev-rules version 175 group camera > /etc/udev/rules.d/40-gphoto.rules
 
 
 
These rules will use the group for newly added camera devices.
 
 
 
If the camera is not present in any [[udev]] rule, can check vendor and product id and add it. To check it just run:
 
 
 
{{hc|# lsusb|
 
...
 
Bus 001 Device 005: ID 04a9:318e Canon, Inc.
 
...
 
}}
 
  
 
=== GPhoto2 usage ===
 
=== GPhoto2 usage ===
Line 52: Line 34:
 
* {{ic|gphoto2 --list-files}}
 
* {{ic|gphoto2 --list-files}}
 
* {{ic|gphoto2 --get-all-files}}
 
* {{ic|gphoto2 --get-all-files}}
 +
* {{ic|1=gphoto2 --set-config datetime=now}} - sets the camera to the current time
  
 
For advanced file manipulation, use
 
For advanced file manipulation, use
 
* {{ic|gphoto2 --shell}}
 
* {{ic|gphoto2 --shell}}
 +
 +
==== Example usage with gvfs  ====
 +
Auto detect the connected camera and list the required port:
 +
 +
$ gphoto2 --auto-detect
 +
Model                          Port                                           
 +
----------------------------------------------------------
 +
Canon Digital IXUS 980 IS      usb:006,011
 +
Now open your favorite file manager and enter the address with the found port detail "gphoto2://[usb:006,011]" - the camera will be mounted with gvfs and can be managed with the file manager.
  
 
==== Other frontend applications for libgphoto2 ====
 
==== Other frontend applications for libgphoto2 ====
  
* [http://www.gphoto.org/proj/gphotofs/ gphotofs] - allow using cameras with any tool able to read from a mounted filesystem.
+
* {{App|darktable|Utility to organize and develop raw images.|http://darktable.org/|{{Pkg|darktable}}}}
* [http://darktable.org/ darktable]
+
* {{App|[[Digikam]]|Digital photo management application for [[KDE]].|https://www.digikam.org/|{{Pkg|digikam}}}}
* [[Digikam]]
+
* {{App|gphotofs|[[Fuse]] module to mount camera as a filesystem.|http://www.gphoto.org/proj/gphotofs/|{{AUR|gphotofs}}}}
* [http://f-spot.org/ F-Spot]
+
* {{App|gThumb|Image browser and viewer for [[GNOME]].|http://wiki.gnome.org/gthumb|{{Pkg|gthumb}}}}
* [http://live.gnome.org/gthumb Gthumb]
+
* {{App|GTKam|Graphical [[GTK+]] 2 front-end to gphoto2.|http://www.gphoto.org/proj/gtkam/|{{AUR|gtkam}}}}
* [http://www.gphoto.org/proj/gtkam/ GTKam]
+
* {{App|Kamera|[[KDE]] integration for gphoto2 cameras.|https://github.com/KDE/kamera|{{Pkg|kamera}}}}
 
+
* {{App|Pantheon Photos|Image viewer for Pantheon.|https://launchpad.net/pantheon-photos|{{Pkg|pantheon-photos}}}}
== Troubleshooting ==
+
* {{App|Rawstudio|An open source raw-image converter written in GTK+. Supports tethered shooting with gphoto2.|https://rawstudio.org/|{{Pkg|rawstudio}}}}
 +
* {{App|Shotwell|Digital photo organizer designed for [[GNOME]].|http://wiki.gnome.org/Apps/Shotwell|{{Pkg|shotwell}}}}
  
=== Groups ===
+
== See also ==
  
Make sure that the user to which access should be granted is part of the [[Users and Groups#Groups|storage group]].
+
* [http://www.gphoto.org/proj/libgphoto2/support.php A list of cameras supported by gPhoto]
 +
* [http://www.teaser.fr/~hfiguiere/linux/digicam.html another more detailed list]

Latest revision as of 14:52, 24 August 2017

This article documents the configuration of libgphoto2 to access digital cameras. Some digital cameras will mount as normal USB storage devices and may not require the use of libgphoto2.

libgphoto2

Libgphoto2 is the core library designed to allow access to digital cameras by external (front end) programs, such as Digikam and gphoto2. The current 'officially' supported cameras are here (though more may work).

Installation

Install the libgphoto2 package, and optionally gvfs-gphoto2 for GNOME Files integration and gphoto2 to have a command line interface. Actually, any package that lists gvfs as a dependency can use gvfs-gphoto2, such as Nemo, PCManFM, and Thunar.

Permission issues

Users with a local session have permissions granted for cameras using ACLs. See General troubleshooting#Session permissions if it does not work.

GPhoto2 usage

GPhoto2 is a command line client for libgphoto2. GPhoto2 allows access to the libgphoto2 library from a terminal or from a script shell to perform any camera operation that can be done. This is the main user interface.

GPhoto2 also provides convenient debugging features for camera driver developers.

Quick Commands

  • gphoto2 --list-ports
  • gphoto2 --auto-detect
  • gphoto2 --summary
  • gphoto2 --list-files
  • gphoto2 --get-all-files
  • gphoto2 --set-config datetime=now - sets the camera to the current time

For advanced file manipulation, use

  • gphoto2 --shell

Example usage with gvfs

Auto detect the connected camera and list the required port:

$ gphoto2 --auto-detect
Model                          Port                                            
----------------------------------------------------------
Canon Digital IXUS 980 IS      usb:006,011 

Now open your favorite file manager and enter the address with the found port detail "gphoto2://[usb:006,011]" - the camera will be mounted with gvfs and can be managed with the file manager.

Other frontend applications for libgphoto2

  • darktable — Utility to organize and develop raw images.
http://darktable.org/ || darktable
  • Digikam — Digital photo management application for KDE.
https://www.digikam.org/ || digikam
  • gphotofsFuse module to mount camera as a filesystem.
http://www.gphoto.org/proj/gphotofs/ || gphotofsAUR
  • gThumb — Image browser and viewer for GNOME.
http://wiki.gnome.org/gthumb || gthumb
  • GTKam — Graphical GTK+ 2 front-end to gphoto2.
http://www.gphoto.org/proj/gtkam/ || gtkamAUR
  • KameraKDE integration for gphoto2 cameras.
https://github.com/KDE/kamera || kamera
  • Pantheon Photos — Image viewer for Pantheon.
https://launchpad.net/pantheon-photos || pantheon-photos
  • Rawstudio — An open source raw-image converter written in GTK+. Supports tethered shooting with gphoto2.
https://rawstudio.org/ || rawstudio
  • Shotwell — Digital photo organizer designed for GNOME.
http://wiki.gnome.org/Apps/Shotwell || shotwell

See also