0

I would like to execute exiftran on all .jpg files recursively below the current directory.

exiftran -ai * does what I need (apply rotation based on EXIF info) within the current directory, but not within subdirectories.

Is there a flag I don't know of? Or a workaround using find?

Zanna
  • 69,223
  • 56
  • 216
  • 327
Markus Weninger
  • 395
  • 1
  • 4
  • 14

1 Answers1

2

I finally used find to achieve this:

find . -type f -name "*.jpg" -exec exiftran -ai "{}" \;

Markus Weninger
  • 395
  • 1
  • 4
  • 14