Skip to content

Instantly share code, notes, and snippets.

@graham768
Created March 9, 2018 19:20
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graham768/4990c0c4fb7aff9eaf9698063a60856d to your computer and use it in GitHub Desktop.
Save graham768/4990c0c4fb7aff9eaf9698063a60856d to your computer and use it in GitHub Desktop.
Converts an entire directory of LUT files into HaldCLUT using G'MIC
#1/bin/bash
# run this script in the directory containing your luts
for file in *
do
gmic -input_cube "$file" -r 64,64,64,3,3 -r 512,512,1,3,-1 -o "$file".png
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment