#!/bin/bash jhead -autorot *.[jJ][pP][gG] mkdir raspberry;for i in *.[jJ][pP][gG] ; do convert $i -verbose -resize 1920x raspberry/$i ; done cd raspberry mkdir ../video; n=1;for i in *.[jJ][pP][gG]; do composite -gravity NorthEast -compose Over /d/Alpenverein/logo_neu/anger/pdf/AV_anger_4c_pos_200x100.png $i ../video/bild_mit_logo$(printf "%04d" $n).jpg;n=`expr $n + 1`;done cd ../video chown peer:users * chmod 755 * for i in *; do jhead -exonly -ft $i;done jhead -n%Y-%m-%d_%H:%M:%S *.[jJ][pP][gG] #jeden Tag in ein eigenes Verzeichnis verschieben #umbenennen #n=1;for i in *;do mv $i 2013-07-18_$(printf "%03d" $n).jpg;n=`expr $n + 1`;done