Very useful little program to view and manipulate EXIF headers in JPEG files. All OS'es (Linux, Windows, Mac, etc.) 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]\""); } } Leave a comment:Archives
|