Skip to content

Instantly share code, notes, and snippets.

@gregkepler
Created March 2, 2019 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregkepler/68469d7c11a69f05cdded69ed445bca7 to your computer and use it in GitHub Desktop.
Save gregkepler/68469d7c11a69f05cdded69ed445bca7 to your computer and use it in GitHub Desktop.
ImageMagick convert folder EXRs to PNGs in linear colorspace
::Turn of displaying the code on the screen
@echo off
echo Converting...
for %%f in (%1/*.exr) do (
rem echo %%~nf
rem echo %%f
magick convert "%1/%%f" -verbose -format png -depth 16 -channel RGBA -type truecolormatte -colorspace RGB -define png:bit-depth=16 "%2/%%~nf.png"
)
echo done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment