Given a sprite sheet with a plain background like this:
I want to take each individual image off this background and create a file for it. I've looked around and had trouble finding information on how to do this - I cant help but feel there is some simple method. Does anyone have any pointers?
Caveat: Not all sprite sheets are the same format/layout, e.g. this one:
It's laid out slightly differently, and this one is even weirder.
So some challenges:
The background of the sprite sheet varies in colour.
Sprites in the sprite sheet vary in size, and that size cannot be specified ahead of time.
Method must generalize (reasonably well) to thousands of sprite sheets.
Appreciate any help.