u/Chologism

Made a spritesheet slicer to get multiple assets out of one image

Finally added the last missing piece of my bulk asset workflow:

Being able to automatically slice animations into individual spritesheets.

Why?

  1. AI image gen gives you better style consistency when assets share one canvas.
  2. It reduces the cost dramatically, the example is 49 characters with one nano banana 2 call.

The problems:

The output is one big sheet. Slicing it up by hand in Photoshop is a chore. Worse for animations, since you have to keep frame alignment across the whole strip.

AI never gives you perfect spacing. Stuff bleeds into neighboring tiles (never a perfect rectangle space around it).

So I built a slicer into my app. For animations it crops the same region across every frame, so you get back a proper animated sprite.

To solve the bleending issue, the slicer detects connected pixel islands inside each rectangle and keeps only the main one.

Note about the clip: The monsters are by no means super quality output. I was just pushing how much you can cram into one generation. Zero manual cleanup either, a bit of touchup would go a long way.

u/Chologism — 6 days ago