ozwaldorf / lutgen-rs

Blazingly fast interpolated LUT generator and applicator for arbitrary and popular color palettes.
https://docs.rs/lutgen
MIT License
302 stars 8 forks source link

Apply Every Palette to a Single Image #20

Closed Atrament1s closed 3 months ago

Atrament1s commented 6 months ago

Is your feature request related to a problem? Please describe. Sometimes I want to see how a variety of palettes look on a single image, but it can be hard to pick which color palettes would look best, since I'm not familiar with the majority of them.

Describe the solution you'd like It'd be awesome if there were an option to apply every palette on a single image. An example of how this could look would be lutgen apply -p all <image>.png. This would create a folder named with each applied image being named -. For example, for lutgen apply -p all astronaut.png:

astronaut ├astronaut-gruvbox-dark.png ├astronaut-gruvbox-light.png ├astronaut-rose-pine.png ├astronaut-catppuccin-macchiato.png ... └astronaut-mono-green-gogh.png

Describe alternatives you've considered An alternative may be to write a bash script to run lutgen for every color palette supported, however a built-in solution would be not only more convenient, but would also see more use than a script, since the option is built-in.

ozwaldorf commented 4 months ago

This should be possible with something like:

lutgen palette names | while read pal; do
  lutgen apply -p $pal image.png
done

(On latest git)

Atrament1s commented 3 months ago

It works great, thanks!