color_blinder

Crates.iocolor_blinder
lib.rscolor_blinder
version1.0.2
sourcesrc
created_at2019-08-16 01:54:09.411445
updated_at2021-01-08 18:45:28.149032
descriptionTakes images and renders a set of images simulating different kinds of color blindness.
homepage
repositoryhttps://gitlab.com/dns2utf8/color_blinder
max_upload_size
id157235
size1,053,272
Stefan Schindler (dns2utf8)

documentation

https://docs.rs/color_blinder

README

color_blinder

crates.io CI pipeline

Takes images and renders a set of images simulating different kinds of color blindness.

If you prefer a graphical application checkout color_blinder_gtk

Usage

Use the --combine-output flag to generate a single output image containing the complete set.

With the --filter option you can select which filter should be rendered. Multiple selections can be joined by comma in any order. For example: Deuteranomaly,monochrome,DEUTAN,BVM97

Demo image

  • Achromatomaly
  • Achromatopsia
  • Deuteranomaly
  • Deuteranopia
  • DeuteranopiaBVM97
  • Protanomaly
  • Protanopia
  • ProtanopiaBVM97
  • Tritanomaly
  • Tritanopia
  • TritanopiaBVM97

Installation

Install from crates.io with:

cargo install --force color_blinder

Note: the --force tells cargo to install the latest version.

Features

  • Process multiple files in one run
  • Unify output images into one
  • Optional text labels
    • in the combined image
    • on each image
  • Support transparent PNG images
    • use maximum compression for output files
  • Filter by name
    • filter by groups (MONOCHROME, DEUTAN, PROTAN, TRITAN and BVM97)
  • Parallel processing per filter
    • look into optimising parallel processing single images

In case you would like to disable the text feature compile with cargo build --release --no-default-features.

Feedback and/or Pull Request are welcome

Resources

Online tools

Commit count: 59

cargo fmt