-
-
Save RuslanZavacky/380afca1a6e4172994e2371ec71f3c8f to your computer and use it in GitHub Desktop.
Convert RAW images (.NEF) to jpeg and create shareble versions
This file contains hidden or 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/sh | |
| processExport() { | |
| t="$(/usr/bin/GetFileInfo -d "$1")"; | |
| jpg=`basename $1`; | |
| jpg="${jpg%.*}.jpg"; | |
| sips -s format jpeg -s formatOptions 90 "$1" --out "$jpg"; | |
| /usr/bin/SetFile -m "$t" -d "$t" "$jpg"; | |
| } | |
| export -f processExport | |
| find `pwd` -name '*.NEF' | parallel --eta -j+1 processExport |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment