#color #blind #screenshot #accessebility #batch_processing

bin+lib color_blinder

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

7 releases (1 stable)

new 1.0.0 Sep 13, 2020
0.3.2 Aug 25, 2020
0.3.1 Sep 19, 2019
0.2.1 Aug 17, 2019
0.1.0 Aug 16, 2019

#17 in Multimedia

26 downloads per month

MIT/Apache

1MB
962 lines

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*,bmv97*

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

Dependencies

~4.5MB
~83K SLoC