This is a small java program that turns a normal sprite sheet (that you can find on spriter’s resource) into individual sprite images. It was created for The Spriters Resource.
Latest Version: v1.5 on Aug 05, 2013
I looked around sprites resource and found that most of the sprites were sort of jumbled together. Not a rippers fault, but it makes any kind of use of the sprites difficult, and I don’t want to spend a few hours in photoshop just so I could grin at seeing an animated version.
I looked around and couldn’t really find anything that could fix that exactly. So I wrote a small java program that automatically cuts up a sprite sheet and spits out all the individual sprites. Of course there is some margin of error, but I tried to add some command line options that can help you tweak those.
Originally I planned to add something that could go about aligning similar sprites to make animation easier. I have a few simple AI designs that work sometimes (PM, statistical, color fudging, area averaging, etc), but nothing that actually works good enough for release yet.
- It can jam up on really large sprite sets. So you might have to do a little cutting by hand anyway.
- Not all sprite sheet are completely compatible, some of them that use line separation can cause large extra images to be generated. I may fix this eventually.
- It is not a tile cutter, things that are perfectly tiled already don’t really need the use of this tool. I may add this eventually.
- All sprites displayed in the preview box take up the same area, so one large sprite can make a bunch of small sprites take up that much area in the preview pane. I may fix this eventually.
- It can be a little slow.
How it works
It generates an image mask from the sprite image and then searches pixel by pixel for a area that is not background, once found it flood fills that area and records the pixel locations which it then uses to generate a bounding box and alpha mask (if using masking option) for output.
How to use it
- Click and Drag your file onto the “Drag and Drop Image Here” Box.
- Adjust your options according to the preview for the options you want.
- Select an export location (if you want it somewhere else)
- Click “Export To Files” button
- Your done!
- Fixed an issue where it added an additional period to the end of extensions.
- Added the starts of a tile cutter in the source (not available in the GUI yet).
- Locked the locale to US (solves a few minor UI bugs, I don’t have alternate translations anyway).
- Fixed a bug in the secondary mask option where it would not always enable correctly.
- Fixed a bug where the sprite on the edge of a sheet caused the program to seize up (it was a simple fix).
- Added a file chooser to import a sprite.
- Added an option to sample the (center of the) edges and corners to determine background color (uses the one that occurs most often).
- Added an generic error message system so that bugs are easier to report.
- Changed to use Java 6
- Added a preview pane to the GUI.
- Added a simple GUI with Tooltips.
- Original Console Version
- Beta Console Version