baboon-image-uri
v1.0.1 baboon image test data uri datauri url image pixels and 1 more...
baboon-image-uri
Baboon test image (128x128) in the form of a PNG base64-encoded Data URI string. This is useful for quick visual demos where you just want to get an image on screen via CSS or the Image
object.
//gives us a string
var baboon = require('baboon-image-uri')
//append the image to the body when ready
var img = new Image()
img.onload = function() {
document.body.appendChild(img)
}
img.src = baboon
Usage
Credits
Image is public domain.
Rest of module is MIT, see LICENSE.md for details.
npm i baboon-image-uri
Metadata
- MIT
- Whatever
- Matt DesLauriers
- released 8/26/2014