根据spine动画编辑器的导出文件反向自动切图工具。
发布于 7 年前 作者 koalaylj 5592 次浏览 来自 分享

项目地址

根据spine导出文件反向自动切图工具。

Intro

  • Based on NodeJS and Electron.
  • 纯javascript切图(利用canvas),不依赖第三方工具。
  • 虽然是反向解析spine的,但是可基于此开发其他自动切图工具。

Screenshot

screenshot

For what use?

  1. Parse spine(h5 animation editor) atlas(libgdx atlas format) to JSON format.

  2. Cut spine atlas to slices by .atlas&.png files.

  3. Crop image with x,y,width,height in batch.

Usage

To clone and run this repository you’ll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
git clone https://github.com/koalaylj/reverse-atlas
# Go into the repository
cd reverse-atlas
# Install dependencies and run the app
npm install && npm start

Quick start

ui

  • Fill the src folder and dest fold then click start button.

  • src must be glob path style.

    example:/your/path/example/**/[^~$]*.atlas

How

new Image() --> canvas.drawImage(image,x,y,w,h) --> canvas.toDataUrl() --> save it with base64 code.

At last

mac & pc portable package on the air. 有问题可以QQ群内讨论:223460081

MIT License

回到顶部