Skip to content

Shrikanth9/sprites-extract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package can extract and download images from TexturePacker spritesheets using the TexturePacker JSON data.

INSTALLATION

npm i sprites-extract

USAGE

  1. Create a JavaScript file and require the extract() method.
  2. Call the extract() method, passing the paths of the TexturePacker spritesheet and JSON file as parameters.
const extract = require('sprites-extract');

extract('/path/to/spritesheet.png', './path/to/spritesheet.json');
  1. Run the javascript file using node js command (eg: node script.js). A folder named "Output" should be generated along with all the extracted images from spritesheet.

About

This will extract sprites from the given sprite sheet using the corresponding texture packer json data

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors