3 ms·
I use imagemagick to split spritesheets into single images for games that I make[0]. More than 1 gamedev has saved countless of hours thanks to it, so I 100% ho
by ldd 6y ago
I use imagemagick to split spritesheets into single images for games that I make[0]. More than 1 gamedev has saved countless of hours thanks to it, so I 100% hope it never breaks.
[0]: https://gist.github.com/ldd/9b576bb6f0ac99a0a7895eaf1aae7802 https://gist.github.com/ldd/9b576bb6f0ac99a0a7895eaf1aae7802
- zzo38computer 6y agoMy "ff-dice" program (together with "pngff" to decode PNG, and "ffpng" to encode PNG; these two also require LodePNG, which is included, and which itself has no other dependencies) also does that. Netpbm also does this; you can use the "pamdice" program (together with "pngtopnm" and "pnmtopng" to decode and encode PNG). However, pamdice requires creating intermediate files, while ff-dice doesn't require that. So, you have two more things to try if ImageMagick won't work.
- ldd 6y agoDo you have a link? Ironically, trying to good for `ff-dice` or `pngff` sends me back to this thread!
- zzo38computer 6y agoThere is a Fossil repository at: http://zzo38computer.org/fossil/farbfeld.ui http://zzo38computer.org/fossil/farbfeld.ui (Although there are a lot of files, you will only need to compile the files that you need, and you can delete the files that you don't need.)
- ldd 6y agoawesome!