A cross published Scala.js library for Image Processing.
This Scala.js library brings convenient, high performance, image representation classes with low level processing capabilities to JavaScript and JVM environments.
From the perspective of Scala on the JVM, the Img class wraps an Array[Int] for fast conversion to Java's BufferedImage type to maximize interoperability with other JVM image processing libraries.
From the perspective of Scala.js or plain Javascript environments such as web browsers and Node.js, the Img class wraps the native Uint8ClampedArray to facilitate interoperability with Canvas, pixel data transfer to WebWorkers, and fast data serialization.