一、z文件转png方法:
1、先下载texturePacker(需要是破解版)
2、创建一个.bat文件:新建一个.txt然后改下后缀为bat
3、拷贝如下内容到.bat文件中保存:
注意:
1、第二行路径为安装texturePacker的路径
2、第四行如.png改成.jpg就可以转成jpg格式的图
@echo off
path %path%;“E:\CodeAndWeb\TexturePacker\bin”
for /f “usebackq tokens=*” %%d in (dir /s /b *.pvr *.z *.pvr.gz
) do (
TexturePacker.exe “%%d” --sheet “special.png” --data “special.plist” --opt RGBA8888 --allow-free-size --algorithm Basic --no-trim --dither-fs
)
pause
4、把该文件和需要转的文件放在同一目录下
5、双击.bat文件,等执行完毕之后就好了
二、png转pvr文件
@echo off
path %path%;“E:\CodeAndWeb\TexturePacker\bin”
for /f “usebackq tokens=*” %%d in (dir /s /b *.png
) do (
TexturePacker.exe “%%d” --sheet “special.pvr” --data “special.plist” --opt PVRTC4 --allow-free-size --algorithm Basic --no-trim --dither-fs
)
pause
文章参考:/zhaoqingqing/p/3921833.html