# cluttered
[![crates.io][crates-svg]][crates-link] [![github][github-svg]][github-link]
A CLI Texture Packer written in rust that can pack a bunch of images optimally based on [crunch-rs](https://github.com/ChevyRay/crunch-rs). Supports many formats as well including json, binary and [ron](https://github.com/ron-rs/ron).
It can be used for games with Godot, Monogame or a bunch more that needed to optimize the memory usage.
### Usage
This CLI Texture Packer is based around the config file, which you would have to create in order to pack the images.
Example content of the config file with toml format:
```toml
name = "gem_collections"
output_path = "samples/out"
output_type = "Json"
template_path = "samples/xml-template.xml"
folders = [
"samples/images/common",
"samples/images/rare",
"samples/images/legendary",
"samples/images/rect"
]
[image_options]
output_extension = "Png"
max_size = 4096
show_extension = false
[features]
nine_patch = true
```
Then, in the CLI usage:
`cluttered config --input `
Example:
`cluttered config --input packer-config.toml`
Alternatively, we can use the manual way, which we can use the argument called `pack`
`cluttered pack --input <[INPUT]> --output