New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

colorgram

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorgram

Color extraction library. In TypeScript/JavaScript. For browser/server.

Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

Colorgram Build Status

Color extraction library. In TypeScript/JavaScript. For browser/server.

Demo

test/browser_test.html

Features

  • small size, 1kB (minified + gzipped)
  • pretty fast, 512×512 pixels in ~50ms, 340×340 pixels in ~15ms
  • scans every pixel
  • identical output for rotated images
  • sampled by top 2 bites of 6 group R, G, B, H, L, luminance
  • calculates average per group
  • fixed memory footprint, samples using 2 ^ 6 * 4 = 16384 bytes

Similar stuff

TypeScript documentation

doc/index.html

Install

npm install colorgram

Usage

See test folder

Keywords

browser

FAQs

Package last updated on 07 Jul 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