Skip to content

nathan7/load-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

load-image

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

Installation

$ npm install load-image

or

$ component install nathan7/load-image

API

loadImage(src)

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)

loadImage.lazily(src)

Lazily load the given image (returns a lazy promise)

License

MIT

About

load an image asynchronously, promised.

Resources

Stars

Watchers

Forks

Packages

No packages published