LinuxAlternative

Linux · Sound & Video

gPhoto2

gPhoto2 is a command‑line tool that lets you control and transfer photos from digital cameras on Linux.

Open sourceFree
Be the first to rate
License
GPL-2.0
Latest version
2.5.32

What is gPhoto2?

gPhoto2 has been around since 2004 and is maintained by a small core team. It supports a wide range of cameras and can be scripted for batch jobs. The tool is aimed at photographers who need reliable remote control of their DSLR or mirrorless cameras, especially those who prefer a lightweight, scriptable workflow. Compared to Windows tools like CamRanger, gPhoto2 is more manual but offers full control over camera settings and file handling without extra hardware.

Best for: Photographers who want full control over camera settings and file management without extra hardware.

Key features of gPhoto2

  • Supports over 1,800 camera models
  • Remote capture, live view, and burst mode
  • Batch download and renaming
  • USB, Wi‑Fi, and Bluetooth interfaces
  • Command‑line and Python bindings
  • Linux, macOS, and Windows compatibility (via Cygwin)

Pros

  • Free and open source
  • No need for proprietary hardware
  • Highly scriptable
  • Strong community support
  • Cross‑platform

Cons

  • No graphical interface by default
  • Learning curve for command‑line usage
  • Limited live‑view quality on some models
  • Requires manual configuration for Wi‑Fi cameras

Windows programs gPhoto2 replaces

How to install gPhoto2 on Linux

Ubuntu / Mintsudo apt install gphoto2
Debiansudo apt install gphoto2
Fedorasudo dnf install gphoto2
Arch / Manjarosudo pacman -S gphoto2
openSUSEsudo zypper install gphoto

Tips for Windows users

If you’re used to CamRanger’s GUI, start by learning the basic gPhoto2 commands: "gphoto2 --capture-image" to take a photo, "gphoto2 --get-all-files" to download. File names are preserved, but you can use "--filename" to set a custom pattern. Use "--help" for a list of options. Shortcuts are not available; you’ll rely on scripts or the command line. For Wi‑Fi cameras, set up the network first and use the "--port" option to point to the camera’s IP address.

gPhoto2: frequently asked questions

Does gPhoto2 support RAW files?

Yes, it can transfer RAW, JPEG, and other formats directly from the camera.

Can I use gPhoto2 with a Mac?

gPhoto2 runs on macOS, but you may need to install Homebrew and the libgphoto2 library.

How do I set up Wi‑Fi control?

Configure the camera’s Wi‑Fi, then use "gphoto2 --port=usb:port" or "gphoto2 --port=network:IP:port".

Is there a GUI for gPhoto2?

There are third‑party GUIs like Shotwell and Darktable, but the core tool is command‑line only.

Updated