Skip to content

Instantly share code, notes, and snippets.

@SelStrom
Created September 24, 2016 19:17
Show Gist options
  • Save SelStrom/521207d44f91dbd6fdde3a39a64355cf to your computer and use it in GitHub Desktop.
Save SelStrom/521207d44f91dbd6fdde3a39a64355cf to your computer and use it in GitHub Desktop.
Converts the all *.png files in the folder in to atf
@echo off
if exist atf_assets (
echo:Delete the folder atf_assets and all its contents?
rd /s atf_assets
)
mkdir atf_assets
for %%A in (*.png) do (
rem echo:%%~fA
png2atf -c p -r -i %%A -o atf_assets/%%~nA_pvrtc.atf
png2atf -c e -r -i %%A -o atf_assets/%%~nA_etc1.atf
png2atf -c d -r -i %%A -o atf_assets/%%~nA_dxt.atf
)
echo:Complete!
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment