Create spritesheets from multiple folders of sprites/images up to ~48x+ faster than ImageMagicks montage
command.
go install github.com/LeeWannacott/gontage@latest
- Images to Spritesheet: flags(-f or -mf)
- Images to Resized images: flags (-f -ss -sr)
- Spritesheet cut into images: flags (-f -c)
gontage -h
- gontage was up to ~48x faster than montage at creating multiple spritesheets (tested on a 12 core AMD 5900x)
-
gontage was ~3.5x faster in this instance tested on a 12 core AMD 5900x
-
~2.5x faster on a 2 core 4 thread i5-4210U Skylake CPU.
At around the same level of compression:
- Using an appImage for ImageMagick adds around 0.8seconds to startup time when running montage...
- Building an equivalent in NodeJS took around ~700ms (800ms with Bun) for one folder 7x slower than Gontage (~90ms) and 2x slower than Montage (~350ms).