jhead - EXIF JPEG Camera Setting Parser and Thumbnail Remover · Ссылки

Very useful little program to view and manipulate EXIF headers in JPEG files. All OS'es (Linux, Windows, Mac, etc.)
Example:
$ jhead "-n%Y-%02m-%02d %02H%02M%02S %f" *
Renames all JPEG files in current direcory to something like:
2005-06-21 091337 oldname.jpg
Also it can rotate file accordingly to camera orientation sensor reading (using jpegtran) and clear rotation flag and remove all "junk" data (comments written by Photoshop, thumbnail, etc.) - very useful!
See comments for scripts using jhead.




Comments:

Comment from: S.A.G.e [Member]
Two tiny Perl scripts using jhead (won't work for files with special characters like quotes in file name).

exif-clean - remove some junk from JPEG files:
#!/usr/bin/perl
for($i=0; $i<@ARGV; $i++){
  print "Processing $ARGV[$i]...\n";
  system("jhead -exonly -dt -du -autorot \"$ARGV[$i]\"");
}


exif-rename - rename files accordingly date and time of shooting, skipping files whose names already start with a number.
#!/usr/bin/perl
for($i=0; $i<@ARGV; $i++){
  $fn=$ARGV[$i];
  if ($fn =~ /^\d/){
    print "Skipping \"$fn\"...\n";
  }else{
    print "Processing $fn...\n";
    system("jhead -exonly \"-n%Y-%02m-%02d %02H%02M%02S %f\" \"$ARGV[$i]\"");
  }
}
Permalink 09/02/05 @ 11:41

Leave a comment:

Your email address will not be displayed on this site.
Your URL will not be displayed on this site. Comments containing URL's of non-personal pages may be removed.
Confirmation Code:
Human Confirmation Code (Captcha)

HTML tags and "<", ">" symbols are not allowed. Links will not be converted to hyperlinks. Any commercials are removed and reported as abuse.

Archives

                                                                                                                                                                                                                                                                   
April 2024
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

Blogs :

Search :

Misc

Powered by


© Sergey A. Galin, 1998-2021 sageshome.net/blog/