This is a very common function, but found the whole network, incredibly can not find, so draw on others batch file, changed the next, it is possible to the entire directory of the whole batch conversion.
The bat file is tentatively, Myconvert.bat, when executed, put the bat file in the directory to be converted, and then double-click the bat, you can. The bat file is posted below:
- REM path "" is replaced with Texturepacker's installation path, and the bat file can be run directly on the picture folder.
@ech off
Path%path%; " C:\TexturePacker\bin "
for/f "Usebackq tokens=*"%%d in (' dir/s/b *.ccz ') Do (
TexturePacker.exe--sheet "%%~dpnd.png" "%%d"--algorithm Basic--allow-free-size--no-trim
)
Del *.ccz
Del out.plist
Pause
- Convert the PVR to a PNG or JPG by changing the *.CCZ to a PVR
- You can change the%%~dpnd.png to%%~dpnd.jpg, you can turn it into JPG.