forked from blueimp/JavaScript-Load-Image
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced Makefile with Grunt; only distribute relevant files via bower.
- Loading branch information
Showing
4 changed files
with
159 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* JavaScript Load Image Gruntfile | ||
* https://github.com/blueimp/JavaScript-Load-Image | ||
* | ||
* Copyright 2013, Sebastian Tschan | ||
* https://blueimp.net | ||
* | ||
* Licensed under the MIT license: | ||
* http://www.opensource.org/licenses/MIT | ||
*/ | ||
|
||
/*global module */ | ||
|
||
module.exports = function (grunt) { | ||
'use strict'; | ||
|
||
grunt.initConfig({ | ||
jshint: { | ||
all: [ | ||
'Gruntfile.js', | ||
'js/load-image.js', | ||
'js/load-image-ios.js', | ||
'js/load-image-orientation.js', | ||
'js/load-image-meta.js', | ||
'js/load-image-exif.js', | ||
'js/load-image-exif-map.js', | ||
'js/demo.js' | ||
] | ||
}, | ||
uglify: { | ||
production: { | ||
src: [ | ||
'js/load-image.js', | ||
'js/load-image-ios.js', | ||
'js/load-image-orientation.js', | ||
'js/load-image-meta.js', | ||
'js/load-image-exif.js', | ||
'js/load-image-exif-map.js' | ||
], | ||
dest: 'js/load-image.min.js' | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-bump-build-git'); | ||
|
||
grunt.registerTask('test', ['jshint']); | ||
grunt.registerTask('default', ['test', 'uglify']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,60 @@ | ||
{ | ||
"name": "blueimp-load-image", | ||
"version": "1.9.1", | ||
"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": [ | ||
"javascript", | ||
"load", | ||
"loading", | ||
"image", | ||
"file", | ||
"blob", | ||
"url", | ||
"scale", | ||
"crop", | ||
"img", | ||
"canvas", | ||
"meta", | ||
"exif", | ||
"thumbnail", | ||
"resizing" | ||
], | ||
"homepage": "https://github.com/blueimp/JavaScript-Load-Image", | ||
"author": { | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/blueimp/JavaScript-Load-Image.git" | ||
}, | ||
"devDependencies": { | ||
"uglify-js": "2.3.6" | ||
}, | ||
"bugs": "https://github.com/blueimp/JavaScript-Load-Image/issues", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
], | ||
"main": [ | ||
"./js/load-image.js", | ||
"./js/load-image-ios.js", | ||
"./js/load-image-orientation.js", | ||
"./js/load-image-meta.js", | ||
"./js/load-image-exif.js", | ||
"./js/load-image-exif-map.js" | ||
] | ||
"name": "blueimp-load-image", | ||
"version": "1.10.0", | ||
"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": [ | ||
"javascript", | ||
"load", | ||
"loading", | ||
"image", | ||
"file", | ||
"blob", | ||
"url", | ||
"scale", | ||
"crop", | ||
"img", | ||
"canvas", | ||
"meta", | ||
"exif", | ||
"thumbnail", | ||
"resizing" | ||
], | ||
"homepage": "https://github.com/blueimp/JavaScript-Load-Image", | ||
"author": { | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/blueimp/JavaScript-Load-Image.git" | ||
}, | ||
"bugs": "https://github.com/blueimp/JavaScript-Load-Image/issues", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
], | ||
"main": [ | ||
"js/load-image.js", | ||
"js/load-image-ios.js", | ||
"js/load-image-orientation.js", | ||
"js/load-image-meta.js", | ||
"js/load-image-exif.js", | ||
"js/load-image-exif-map.js" | ||
], | ||
"ignore": [ | ||
"/*.*", | ||
"css", | ||
"js/vendor", | ||
"js/demo.js", | ||
"test" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,51 @@ | ||
{ | ||
"name": "blueimp-load-image", | ||
"version": "1.9.1", | ||
"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": [ | ||
"javascript", | ||
"load", | ||
"loading", | ||
"image", | ||
"file", | ||
"blob", | ||
"url", | ||
"scale", | ||
"crop", | ||
"img", | ||
"canvas", | ||
"meta", | ||
"exif", | ||
"thumbnail", | ||
"resizing" | ||
], | ||
"homepage": "https://github.com/blueimp/JavaScript-Load-Image", | ||
"author": { | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/blueimp/JavaScript-Load-Image.git" | ||
}, | ||
"devDependencies": { | ||
"uglify-js": "2.3.6" | ||
}, | ||
"bugs": "https://github.com/blueimp/JavaScript-Load-Image/issues", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
], | ||
"main": "./js/load-image.min.js" | ||
"name": "blueimp-load-image", | ||
"version": "1.10.0", | ||
"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": [ | ||
"javascript", | ||
"load", | ||
"loading", | ||
"image", | ||
"file", | ||
"blob", | ||
"url", | ||
"scale", | ||
"crop", | ||
"img", | ||
"canvas", | ||
"meta", | ||
"exif", | ||
"thumbnail", | ||
"resizing" | ||
], | ||
"homepage": "https://github.com/blueimp/JavaScript-Load-Image", | ||
"author": { | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/blueimp/JavaScript-Load-Image.git" | ||
}, | ||
"bugs": "https://github.com/blueimp/JavaScript-Load-Image/issues", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
], | ||
"devDependencies": { | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-uglify": "~0.2.7", | ||
"grunt-contrib-jshint": "~0.7.1", | ||
"grunt-bump-build-git": "~1.0.0" | ||
} | ||
} |