2.0.0 • Published 6 years ago

pixelswitch v2.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

PixelSwitch

Author: Charly Welch

blwbiology@gmail.com

Description

An async bitmap transformer that that takes a bmp file and applies one or more color transforms to the image. Completed as a student exercise for Alchemy Code Lab, Portland OR.

To Use

npm i pixelswitch

const bitmapTransformer = new BitmapTransformer(fileName);
bitmapTransformer.transform(function, outputFileName);

available functions:

  • invert
  • grayscale
  • sepia

fileName: the file to transform

outputFileName: the file to write to after transformation

Resources

Sepia transformation algorithm from https://www.techrepublic.com/blog/how-do-i/how-do-i-convert-images-to-grayscale-and-sepia-tone-using-c/

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago