Apply the same palette to multiples images in a directory, producing images with the same palette.
With stack :
stack build
stack install // will copy binary in stack bin directory
If the binary is in your PATH you can just use
palettize palette dir
else you can use stack exec
stack exec palettize palette dir
palette must be a N x 1 image with N between 1 and 256. dir must be the directory containing images you want to apply palette to.
It will create a res directory in dir containing all transformed images.