psd2sprite

Convert PSD to SpriteSheet


Keywords
psd, layers, layout, parse, jsx, json, png, sprite
License
MIT
Install
npm install psd2sprite@0.2.0

Documentation

psd2sprite

Build Status npm license

Convert PSD to SpriteSheet.

01.png

Usage

First, install this module in your project.

$ npm install psd2sprite

Import this module to your source code and call like below.

var psd2sprite = require('psd2sprite');

psd2sprite('./target.psd');
// -> Output of ./target_sprite.png and ./target_sprite.json

psd2sprite('./target.psd', './outdir');
// -> Output of ./outdir/target_sprite.png and ./outdir/target_sprite.json

License

This software is released under the MIT License, see LICENSE