jhead
Sunday, January 14, 2007 12:19:02 AM
…is a small, simple but powerfull command line application, primarily thought as a tool for viewing, extracting, handling or modifying EXIF data in images - and extremely useful for preparing your picture collections.
After downloading the pics from my camera, I first lowercase all files (never really got why digital cameras all save in uppercase) and then run
jhead -autorot *.jpgto autorotate all images according to their EXIF tag. After this, the orientation tag is set to "1" (which is normal orientation), in order to avoid rotating it once more in case you'd run the command again.
Jpeg images contain, among their EXIF data, also thumbnails, used by digital cameras to preview the image on their LCD display. It is trivial to extract them:
jhead -st "thumbnails/&i" *.jpgwhere thumbnails/ is a directory previously created, to contain the thumbnails; and the variable &i tells jhead to use the image's name for the thumbnail.
Et voilà…
jhead has a plethora of options for more advanced usage, and your needs might be different than mine - so I'll leave them to you to discover…
Incidentally, the author of jhead is the very same guy who built his own home pipe organ. 


Dan Alexandrudantesoft # Sunday, January 14, 2007 1:02:58 AM
RamūnasRamunas # Sunday, January 14, 2007 8:18:02 AM
Claudio Santambrogiocsant # Sunday, January 14, 2007 8:54:34 AM