Last active
April 30, 2024 18:13
-
-
Save ayvacs/e896d709bd7ac5c1a3171c8511b8153f to your computer and use it in GitHub Desktop.
Mass-convert .NEF files to .JPG (or any filetype of your choice) in linux/macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
EXT="jpg"; | |
for img in *.NEF; do | |
convert "$img" -auto-orient "${img%.NEF}.$EXT"; | |
exiftool -overwrite_original -All= ${img%.NEF}.$EXT; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment