Skip to content

tmpvar/htmlimage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTMLImageElement

A standalone image element doing HTMLImageElement related things, on node.js

install

npm install htmlimage

use

NOTE: this library currently only works with png files

var Image = require('htmlimage');

var i = new Image();

i.onload = function() {

  // do something with image.imageData.data (which is a pixel buffer)

};

i.onerror = function(err) {
  // OHNOEZ!
}

i.src = "http://domain.tld/path/to/file.png";

license

MIT

About

images, like in the browser, but in node

Resources

Stars

Watchers

Forks

Packages

No packages published