Skip to content

Instantly share code, notes, and snippets.

@gregkepler
Created March 2, 2019 16:18
Show Gist options
  • Save gregkepler/68469d7c11a69f05cdded69ed445bca7 to your computer and use it in GitHub Desktop.
Save gregkepler/68469d7c11a69f05cdded69ed445bca7 to your computer and use it in GitHub Desktop.

Revisions

  1. gregkepler created this gist Mar 2, 2019.
    11 changes: 11 additions & 0 deletions EXR2PNG.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ::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