Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = require('./js/load-image');

require('./js/load-image-exif');
require('./js/load-image-exif-map');
require('./js/load-image-ios');
require('./js/load-image-meta');
require('./js/load-image-orientation');
2 changes: 1 addition & 1 deletion js/load-image-exif-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define(['load-image', 'load-image-exif'], factory);
define(['./load-image', './load-image-exif'], factory);
} else if (typeof module === 'object' && module.exports) {
factory(require('./load-image'), require('./load-image-exif'));
} else {
Expand Down
2 changes: 1 addition & 1 deletion js/load-image-exif.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define(['load-image', 'load-image-meta'], factory);
define(['./load-image', './load-image-meta'], factory);
} else if (typeof module === 'object' && module.exports) {
factory(require('./load-image'), require('./load-image-meta'));
} else {
Expand Down
2 changes: 1 addition & 1 deletion js/load-image-ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define(['load-image'], factory);
define(['./load-image'], factory);
} else if (typeof module === 'object' && module.exports) {
factory(require('./load-image'));
} else {
Expand Down
2 changes: 1 addition & 1 deletion js/load-image-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define(['load-image'], factory);
define(['./load-image'], factory);
} else if (typeof module === 'object' && module.exports) {
factory(require('./load-image'));
} else {
Expand Down
2 changes: 1 addition & 1 deletion js/load-image-orientation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define(['load-image'], factory);
define(['./load-image'], factory);
} else if (typeof module === 'object' && module.exports) {
factory(require('./load-image'));
} else {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "blueimp-load-image",
"version": "2.1.0",
"main": "index.js",
"title": "JavaScript Load Image",
"description": "JavaScript Load Image is a library to load images provided as File or Blob objects or via URL. It returns an optionally scaled and/or cropped HTML img or canvas element. It also provides a method to parse image meta data to extract Exif tags and thumbnails and to restore the complete image header after resizing.",
"keywords": [
Expand Down