Vielleicht gibt es auch fertige Tools für solche Arbeiten? Ich habekeine Ahnung, wie ich beginnen soll :-/ Über Hinweise würde ich mich freuen!
# aptitude show renrot [...] Depends: perl, libimage-exiftool-perl (>= 5.72), libjpeg-progs (>= 6b) Description: Rename and rotate files according to EXIF tagsRenRot renames files according the DateTimeOriginal and FileModifyDate EXIF tags, if they exist. Otherwise, the name will be set according to the current timestamp. Additionally, it rotates JPEG images and their thumbnails, using the Orientation EXIF tag.
Macht nicht genau, was Du willst, sondern mehr, ist aber sehr praktisch, wertet den EXIF Tag aus und kann die Bilder auch gleich drehen, wenn gewünscht (uvm.).
Viele Grüße, Tilo