This project takes individual images and creates a sprite sheet or texture atlas. The goal of this project is to reduce load time when one needs to upload many images into an application or program. This is done by taking the images needed and placing them together in such a way that they fit into the smallest single image possible. This project is a command line tool and can be built on any platform.
Usage:
impac <input-directory> <output-directory>
Options:
--size=<width>,<height> The size of the sprite sheet [default: minimum size possible].
--image=<name>.<extension> The name of the sprite sheet image file [default: sprite-sheet.png]
--data=<name>.<extension> The name of the sprite sheet data file [default: sprite-sheet.json]
--algorithm=<algorithm> The name of the packing algorithm to use [default: first-fit]
- Compiler with C++17 support
- CMake
- Magick++
- Boost.Filesystem
Installing dependencies on MacOS via homebrew:
$ brew update
$ brew install cmake
$ brew install boost
$ brew install imagemagick
Installing dependencies on Debian/Ubuntu via apt:
$ sudo apt install libboost-all-dev
$ sudo apt install libmagick++-dev
$ mkdir build
$ cd build
$ cmake ..
$ cmake --build .
This generates a main executable named impac and test target named test under the build directory.
- Our Mattermost channel is a great place to get in contact with us, ask questions, and see the direction of our project!
- Feel free to check out our RPI Observatory page for more information regarding us.
- Visit our issue tracker to see some current bugs we are solving.
- Please read our code of conduct for more details and the process for submitting issues to us.
- Allison Ariemma
- Ethan Lynn
- Alex Monaco
- Jingfei Zhou
See also the list of contributors who participated in this project.
This project is licensed under the MIT License.