Skip to content
A parser for the aseprite sprite editor files
Rust
Branch: master
Clone or download
Latest commit 600d396 Jun 3, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples version bump to 0.1.3 Jun 3, 2017
src Added 'image' metadata property Jun 3, 2017
.gitignore Initial import Apr 25, 2017
Cargo.toml version bump to 0.1.3 Jun 3, 2017
LICENSE Initial commit Apr 25, 2017
README.md Updated readme more. Apr 27, 2017

README.md

aseprite

A crate for loading data from the aseprite sprite editor. Should go along well with the tiled crate, I hope!

It does not load any actual images, just the metadata. Currently it only loads aseprite's JSON export format, and only when exported in the "json-array" format (which isn't the default for some reason but appears much more sensible than the alternative).

Automatically exporting a sprite to a given format is documented here: https://www.aseprite.org/docs/cli/

Docs

Documentation is on docs.rs

Example

Export sprite sheet with:

aseprite -b boonga.ase --sheet boonga.png --format json-array --list-tags --list-layers --data boonga.json

Then write a program to load it:

extern crate serde_json;
extern crate aseprite;

use std::fs::File;

fn main() {
   let file = File::open("boonga.json").unwrap();
   let spritesheet: aseprite::SpritesheetData = serde_json::from_reader(file).unwrap();
   println!("Spritesheet is {:?}", spritesheet);
}
You can’t perform that action at this time.