File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Clutter
2+ Clutter is a command-line image processing tool written in Nim that applies cinematic color grading using customizable color palettes to create and apply smooth LookUp Tables (LUTs).
3+ ## Examples
4+
5+ | Original | Nord | Catppuccin | Tokyonight |
6+ | ---------------- | ---- | --------------------------- | ---------------------- |
7+ | ![ clutter] ( https://github.com/user-attachments/assets/7e2b86cb-a531-4031-984c-3367b8982b74 ) | ![ nord-clutter] ( https://github.com/user-attachments/assets/b0010509-5aca-4901-8301-a0762ed8befb ) | ![ catppuccin-clutter] ( https://github.com/user-attachments/assets/4a80774a-f863-47a4-8342-70abda49fd08 ) | ![ tokyo-clutter] ( https://github.com/user-attachments/assets/f8c8c7fb-d492-4e6f-a08f-1b8439c928ac ) |
8+
9+ ## Installation
10+ ### Dependencies
11+ ** Build Dependencies** :
12+ - nim
13+ - nimble (should be included with your nim install)
14+
15+ ** Program Dependencies** :
16+ - libvips
17+ ### Building
18+ Clutter can be built and installed from Nim's package manager, nimble.
19+ ``` sh
20+ nimble install gh:arashi-software/clutter
21+ ```
22+ or you can build from source
23+ ``` sh
24+ git clone https://github.com/arashi-software/clutter
25+ cd clutter
26+ nimble build
27+ cp clutter ~ /.local/bin/
28+ ```
29+
30+ ## Usage
31+ You can easily generate a LUT like this
32+ ``` sh
33+ clutter -i image.png -o out-image.png decay
34+ ```
35+
36+ You can check the configured palettes with
37+ ``` sh
38+ clutter p ls
39+ ```
40+
41+ You can create a new palette using clutter as well
42+ ``` sh
43+ clutter p add sapphy " #6A6B69 #232421 #B0F601 #A8CF4A #FEFEFE #EEEEEE #FF715B #E88873 #F991CC #D8829D #AFCBFF #85BDBF #D7F9FF #74D3AE #F3E9D2 #F9FBB2 #FFB17A #DE6E4B"
44+
45+ # or from a file with space seperated hex codes
46+ clutter p add sapphy " $( cat ~ /sapphy.txt) "
47+ ```
48+
49+ Or you can even skip the palette system altogether and manually specify the colors
50+ ``` sh
51+ clutter -i image.png -o out-image.png " #6A6B69 #232421 #B0F601 #A8CF4A #FEFEFE #EEEEEE #FF715B #E88873 #F991CC #D8829D #AFCBFF #85BDBF #D7F9FF #74D3AE #F3E9D2 #F9FBB2 #FFB17A #DE6E4B"
52+
53+ # or likewise
54+ clutter -i image.png -o out-image.png " $( cat ~ /sapphy.txt) "
55+ ```
56+
57+ To see the full range of options and commands
58+ ``` sh
59+ clutter -h
60+ ```
You can’t perform that action at this time.
0 commit comments