Linux photography

From YobiWiki
Jump to navigation Jump to search

Links

gphoto2

cli

Get at least v2.4.9 for using all Canon features & remote shooting with 5Dmkii

  • gphoto2 --config allows to change many settings, e.g. the owner string
  • Remote capture:
    • gphoto2 --get-config capturetarget
    • gphoto2 --set-config capturetarget=sdram
    • gphoto2 --get-config capture
    • gphoto2 --set-config capture=on
    • gphoto2 --capture-image-and-download
  • For Bulb mode:
    • Switch dial to 'M'anual mode
    • gphoto2 --set-config shutterspeed=bulb
    • gphoto2 --set-config bulb=1 --wait-event=10s --set-config bulb=0 --wait-event-and-download=5s
  • Misc controls for remote capture: Image Format, ISO, WhiteBalance, Whitebalance Adjust, DriveMode, Picture Style, Bulb Mode, BracketMode, Aperture, ShutterSpeed, Autofocus (in LiveView mode), Manual Focus (in LiveView mode), Viewfinder

derivatives

  • gvfs-backends - userspace virtual filesystem - backends
    • contains the gphoto2 backend
  • gphotofs - filesystem to mount digital cameras
  • libwine-gphoto2-unstable - Windows API implementation - camera module
    • This package contains a TWAIN interface that allows Windows
  • kamera - digital camera support for KDE applications
  • gtkam - application for retrieving media from digital cameras
  • gtkam-gimp - gtkam gimp plugin to open digital camera pictures

Scripts

If you don't like having files named IMG_1234.JPG, you can try sth like this to rename the images _yyyy_mm_dd-xxx.jpg_

j=1;
for i in *.JPG;do
   exif.py $i 2>/dev/null |\
   gawk -v i=$i -v j=$j '
       /DateTime:/{
           match($0,/([0-9]+):([0-9]+):([0-9]+)/,a);
           system("mv "i" " sprintf(a[1] "_" a[2] "_" a[3] "-" "%03d" ".jpg",j))
       }';
   j=$((j+1));
done

See also option "mv" of command "exiv2", which does pretty much the same

Photo management applications

  • f-spot - personal photo management application
  • shotwell - digital photo organizer
  • digikam - digital photo management application for KDE
  • gthumb - an image viewer and browser