New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kanata

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kanata

A modern library for image processing on web with pure typescript.

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

kanata

A modern library for image processing on web with pure typescript.

Note: This library is not completed, but some operations are already done.

Demo

You can check the live demo here.

Install

npm install kanata

Usage

// new image
const image = new kanata.ImageCore();
// load image
image.fromURL / image.fromElement / image.fromBuffer...;
// apply operations
kanata.grayscale()(image);
// or
image.apply(kanata.grayscale());
// or
image.pipe(kanata.grayscale()).pipe(kanata.colorInvert());
image.exec();

Completed

Core

  1. ImageCore

Point operations

  1. grayscale
  2. bitsCut
  3. ColorInvert
  4. colorSpaceConvert
  5. contrastStretch
  6. gammaTransform
  7. globalThreshold
  8. grayLayered
  9. linearTransform
  10. logTransform
  11. mask

Geometry operations

  1. affineTransform
  2. crop
  3. flip
  4. rotate
  5. scale
  6. skew
  7. translate

Local filters

  1. convolutionFilter
  2. meanFilter
  3. rankFilter
  4. localThreshold
  5. morphologicalFilter

Histogram

Utils

  1. changeRegion
  2. clone

Features

  1. Documents
  2. Unit tests.
  3. Benchmarks.
  4. A faster version with webassembly.

Keywords

FAQs

Package last updated on 08 Jan 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc