0.0.1 • Published 2 years ago

@danieljdufour/write-png v0.0.1

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
2 years ago

@danieljdufour/write-png

Write Numerical Arrays as a PNG

install

npm install @danieljdufour/write-png

usage

import write from "@danieljdufour/write-png";

const filename_or_path = "image"; // .png optional
const data = [[0, 23, 132, 255], ...];
const extra = {
  height: 768,
  width: 1024
}
write(filename_or_path, data, extra);
0.0.1

2 years ago