load-image

load an image asynchronously, promised.

load-image

load an image asynchronously, promised. also works in node with node-canvas.

$ npm install load-image

or

$ component install nathan7/load-image

Load an image from the given source. Returns a promise. src can be anything Image#src accepts or a promise for it (which is resolved at loading-time)

Lazily load the given image (returns a lazy promise)

MIT