Skip to content

Commit 2aef566

Browse files
committed
Add usage instructions
1 parent 34b94a2 commit 2aef566

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# JavaScript Load Image
22

3+
##Browserify usage
4+
var loadImage = require('blueimp-load-image-browserify/js/load-image');
5+
6+
loadImage(file, function(canvas) {
7+
//See the main repo for more instructions
8+
});
9+
10+
//If you need to use any of the extra files, e.g. the iOS fix, just include them after the main require:
11+
12+
var loadImage = require('blueimp-load-image-browserify/js/load-image');
13+
require('blueimp-load-image-browserify/js/load-image-ios');
14+
15+
316
## Demo
417
[JavaScript Load Image Demo](http://blueimp.github.io/JavaScript-Load-Image/)
518

0 commit comments

Comments
 (0)