Created
June 18, 2023 12:34
-
-
Save sepastian/4cd07f3220f2e7adae77ac6409fd4e35 to your computer and use it in GitHub Desktop.
RAW to PPM (dcraw) to JPG (imagemagick)
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 | |
set -euo pipefail | |
# Convert (Nikon/NEF) RAW images to PPM using dcraw; | |
# write results to stdout with -c; | |
# convert stdin to JPG using Imagemagick's convert; | |
# specify format of input image with 'ppm:-'. | |
find /path/to/sdcard/ -name '*.NEF' \ | |
| parallel 'dcraw -c {} \ | |
| convert -verbose ppm:- {/.}.jpg' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment