g.js — graphical objects for JavaScript

Imaging

g.js has support for importing, combining and filtering images.

Generating images

import — import an image from a file or URL

colorImage / gradientImage

toBitmap — convert a vector shape to an image

Transforming images

translate / rotate / scale

Combining images

blend — combine two images using blending modes

imageMask — mask an image using another image

Image filters

blur / bump / crossEdges / dent / emboss / equalize / findEges / glow / mosaic / pinch / posterize / solarize / removeNoise / lightTunnel / twirl

Image statistics

histogram