Skip to content

A libary, cli and website for applying color palettes to images.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE.txt
MIT
LICENSE_MIT.txt
Notifications You must be signed in to change notification settings

DOD-101/palette-mapper

Repository files navigation

Palette Mapper

Make any image fit your color scheme

What is this?

Palette Mapper is split into 3 different things:

  • The core library (located at lib/). This holds the implementation for taking a color palette and mapping it onto an image.

  • An accompanying CLI (located at cli/). This allows you to interact with the library from your terminal.

  • The website (located at web/). This enables you to use the library from the comfort of your browser.

🚧 TODO 🚧

0.1 release

  • web

    • Notifications (see ./web/src/lib/ui_notification.ts)

    • Make it look better

      • Change color scheme (dependent on selected palette?)

      • Add grid to background

      • Show image output location

        • Before and after?
      • Allow toggling light and dark mode

    • Cleanup (remove stray console.logs, etc.)

  • Finish other todos


Other (lower priority)

  • web

    • allow clicking on image to bring up preview pop-up
  • Implement more distance algorithms

    • CIEDE2000

    • CIE Hybrid

    • CIE76 LAB

    • Manhattan Distance

  • Add caching to the ci

  • (Possibly) Expand options for cli

    • Blurs

    • Batch processing

    • Lightening


Done

  • Add examples

  • Add pre-defined palettes

  • Add checks for misspelling of palette

  • Create web

  • Add testing

    • Benchmarking with hyperfine for cli

    • e2e testing for web

    • CI

    • Benchmarking with criterion for lib

    • Snapshot testing for lib

  • cli

    • completions (via clap-complete)

πŸ–ΌοΈ Examples πŸ–ΌοΈ

Tokyo Rail

Images Tokyo Rail original Tokyo Rail GruvboxLight Tokyo Rail Material Tokyo Rail Moonlight Tokyo Rail OnedarkDark Tokyo Rail RosePine Tokyo Rail TokyoNightMoon Tokyo Rail TokyoNightStorm

Chicago

Images Chigao original Chigao CatppuccinMocha Chigao Darcula Chigao Elemental Chigao Moonlight Chigao OneDark Chigao RosePineDawn Chigao WildCherry

NYC Subway

Images NYC Subway Original NYC Subway AyuDark NYC Subway CatppuccinMocha NYC Subway EverforestDarkMedium NYC Subway GruvboxDarkHard NYC Subway Seti NYC Subway Zenbones NYC Subway DarkMetalKhold

CLI completions

We use clap-complete's unstable-dynamic feature to generate completions.

To generate completions run (see clap-complete's docs for more info):

echo "source <(COMPLETE=bash your_program)" >> ~/.bashrc

πŸ’ Acknowledgments πŸ’

  • Thanks to the creators of image for their amazing library, without which this project would not have been possible.

  • Thanks to Tinted Theming for their great collection of schemes used to create the built-in palettes found under ./palettes/

πŸ“œ License πŸ“œ

Examples

The palettes found in ./palettes/base16/ and ./palettes/base24/ are derived (using ./fetch-palettes.sh) from Tinted Theming and are licensed under MIT.

This project is dual licensed under MIT and Apache-2.0

About

A libary, cli and website for applying color palettes to images.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE.txt
MIT
LICENSE_MIT.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published