Skip to content

Instantly share code, notes, and snippets.

@marcusbirkeland
Last active September 10, 2021 03:49
Show Gist options
  • Save marcusbirkeland/8634a3bdc3cd02ed7cdc187d896afc87 to your computer and use it in GitHub Desktop.
Save marcusbirkeland/8634a3bdc3cd02ed7cdc187d896afc87 to your computer and use it in GitHub Desktop.
[Imagemagick] Separate rgb channels
for %%f in (*.png, *.tga) do (
echo %%~nf
magick convert %%f -channel R -separate %%f_r.png
magick convert %%f -channel G -separate %%f_g.png
magick convert %%f -channel B -separate %%f_b.png
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment