Code: Select all
for file in *.jpg;
do
read f width height < <(identify -format "%f %w %h" "$file")
convert $f -rotate 270 -resize ${width}x${height}! temp-$f;
done
Code: Select all
for file in *.jpg;
do
read f width height < <(identify -format "%f %w %h" "$file")
convert $f -rotate 270 -resize ${width}x${height}! temp-$f;
done