TexturePacker :/texturepacker/新建txt文件->改后缀*.bat文件
rem 请核对你的texturepacker安装路径@echo offpath %path%;"C:\Program Files (x86)\CodeAndWeb\TexturePacker\bin"for /f "usebackq tokens=*" %%d in (`dir /s /b *.pvr *.z *.pvr.gz`) do (TexturePacker.exe "%%d" --sheet "%%~dpnd.png" --data "%%~dpnd.plist" --opt RGBA8888 --allow-free-size --algorithm Basic --no-trim --dither-fs)pause
注:第3行中的 %path%;后的路径为自己本机的TexturePacker路径,例如我的安装路径
可以将第6行的%%~dpnd.png改成%%~dpnd.jpg,就可以转成jpg
3、把这个bat文件和需要转换的*.ccz文件放在同一目录下
4、然后双击bat,会弹出一个CMD窗口,不要关闭它等待它完成
5、转换好之后的 png 会放在同一目录下
PNG转PVR.bat脚本
rem 请核对你的texturepacker安装路径@echo offpath %path%;"C:\Program Files (x86)\CodeAndWeb\TexturePacker\bin"for /f "usebackq tokens=*" %%d in (`dir /s /b *.png`) do (TexturePacker.exe "%%d" --sheet "%%~dpnd.pvr" --data "%%~dpnd.plist" --opt PVRTC4 --allow-free-size --algorithm Basic --no-trim --dither-fs)pause