Skip to content

Instantly share code, notes, and snippets.

@jpesce
Last active June 4, 2020 14:00
Show Gist options
  • Save jpesce/0b3081cd04b4cf91ac789f4495d98c89 to your computer and use it in GitHub Desktop.
Save jpesce/0b3081cd04b4cf91ac789f4495d98c89 to your computer and use it in GitHub Desktop.
[TIFF to JPG] Batch convert TIFF files to JPG #Image
find . -iname "*.tif" -exec convert {}[0] -set filename:f "%d/%t" "%[filename:f].jpg" \;
# Max depth: 2
find . -iname "*.tif" -maxdepth 2 -exec convert {}[0] -set filename:f "%d/%t" "%[filename:f].jpg" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment