How to decompose a plist picture into a single image

Source: Internet
Author: User

  

First I give you two of the tools I wrote:

Https://github.com/Relvin/PlistUnpacker

Let's download the file first, let me show you how to use it:

Here I have provided two tools pvr2png.py and plistunpacker.py. The pvr2png.py is used to convert texturepacker compressed formats such as PVR/PVR.CCZ to png;plistunpacker.py for converting plist and PNG files into a scatter plot.

How to convert Pvr/pvr.ccz pictures to PNG (if your resource is already PNG, you can skip this step)

  First we need to install a tool texturepacker (here I have different download links I can online down), and then choose the installation texturepacker command line tool:

  

  

After the completion of our preparation work is finished, the following can be directly to the map.

      

Python pvr2png.py [source Path] [suffix] [outpath:option]

[Source Path]: The path to PVR/PVR.CCZ

[suffix]: extension for the converted file (EG:PVR, Pvr.ccz ...)

[Outpath]: Optional for the converted output directory. Default View current directory

Second, convert plist and PNG files into a scatter plot.

First, install the two Python tools XML and PIL. The method of installation I will not do too much to repeat.

Here's my other script file, plistunpacker.py.

Python plistunpacker.py [directory/xxx.plist]

[Directory/xxx.plist]: The input parameter can be a directory or a single plist file

Success creates one or more folders in the current directory that are the same as the plist file and holds the scatter files.

Thank you for reading!

If you have any questions in the use of the process can be directly below the message or send to my personal email [email protected].

How to decompose a plist picture into a single image

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.