# Command: Palette Extract a palette from a given image. The palette is saved in either image format (one colour = 1 pixel), common for sites like https://lospec.com, or in a text format, where each line of the file contains one hex encoded RGBA colour (8 hex digits + leading hash) ## Usage ```text Usage: crunch palette [OPTIONS] Arguments: The path to the image file The path to write the palette data Options: -f, --format The format for the palette file. PNG will output an image with colours, while TXT will output a text file with one hex value per line [default: png] [possible values: txt, png] -h, --help Print help -V, --version Print version ``` ## Example ![](/images/Palette.png)