Linux photography

From YobiWiki
Revision as of 22:57, 2 March 2011 by <bdi>PhilippeTeuwen</bdi> (talk | contribs) (Created page with "==Links== * [http://www.teaser.fr/~hfiguiere/linux/digicam.html Digital Camera Support for UNIX, Linux and BSD] * [http://www.jalkapallo.org/superkolik/canon.html Canon PTP exten…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Links

gphoto2

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

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