CNode

根据spine动画编辑器的导出文件反向自动切图工具。

分享
Kkoalaylj发布于10 年前最后回复10 年前0 回复7482 浏览0 收藏

项目地址

根据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

查看回复

回复 (0)

暂无回复,成为第一个参与讨论的人。
参与回复
登录后即可参与回复。登录