Opal is a tool to change images color palette.
It supports png, jpeg, jpg, bmp, ico and gif (with no animations yet).
Clone the repository:
git clone https://github.com/sixels/opal.git && cd opal
Setup a rust environment then run:
cargo install --path .
For now, Opal has only two positional arguments, the filename and the color scheme (it doesn't support multiple images at the same time). You can run it as follow:
opal path/to/image (nord|gruvbox|oceanic|dracula)
Original Image | Dracula | Gruvbox | Nord |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
All images were compressed after being generated.
- Refactoring
- Better CLI interface
- Add more color schemes
- Support custom color schemes
- Progress bar
All featured images were taken from Unsplash