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
  • 72,312
Markus Weninger
  • 395
  • 1
  • 5
  • 14

1 Answers1

2

I finally used find to achieve this:

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

Markus Weninger
  • 395
  • 1
  • 5
  • 14