How to use the image-js.Image.fromCanvas function in image-js

To help you get started, we’ve selected a few image-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dreamnettech / dreamtime / src / electron / src / modules / tools / photo.js View on Github external
export function crop(canvas, destination) {
  const image = Image.fromCanvas(canvas)
  return image.save(destination)
}

image-js

Image processing and manipulation in JavaScript

MIT
Latest version published 4 months ago

Package Health Score

76 / 100
Full package analysis