Socket
Book a DemoInstallSign in
Socket

enhance-contrast

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enhance-contrast

A command line tool that takes automatically contrast enhanced screenshot of a web page

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Enhance Contrast

A command line tool that takes a contrast enhanced screenshot of a given web page.

Usage

enhance-contrast url --width 1024 --height 768

The enhance-contrast generates two screenshots. The before.png (normal) and after.png (contrast enhanced). In the contrast enhanced screenshots, the contrast ratios between texts and backgrounds usually pass 4.5:1 (WCAG 2.0 Success Criterion 1.4.3 Contrast (Minimum)).

It also generates contrast.json which includes more detailed information.

Limitations

  • Contrast calculations don't support images of texts
  • Contrast calculations don't support background images (including CSS gradients)
  • Contrast calculations are't accurate in some cases
  • There are no plans to support full page screenshot
  • This tool uses PhantomJS

Powered by

FAQs

Package last updated on 06 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts