Random Image Generator
An npm module for generating random images. Intended for use in automated tests that require unique images.
Currently only supports generating very noisy JPEGs.
Available as both a node module in code and a command line tool.
Example
Usage
JavaScript
var randomImageGenerator = fs = ; /** * Takes a width and height parameter * Returns a Buffer containing a JPEG image */;
Command Line
npm install -g random-image-generator
random-image-generator 800 600 > random-image.jpg