Cocos2d-x Tutorial 2: How to Bulk convert PVR,CCZ to PNG or JPG under windows

Source: Internet
Author: User

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.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.