Image upload directive with a custom display, progress bar, and displaying of image. Coming soon: cropping functionality.
http://jackrabbitsgroup.github.io/angular-image-upload/
- optional
- angular-area-select (required for crop support)
- ImageMagick (npm plugin and actually installing ImageMagick - required for node backend cropping functionality - though you can substitute this for any backend crop plugin/library/code)
See bower.json
and index.html
in the gh-pages
branch for a full list / more details
- download the files
- Bower
- add
"angular-image-upload": "latest"
to yourbower.json
file then runbower install
OR runbower install angular-image-upload
- add
- Bower
- include the files in your app
image-upload.min.js
image-upload.less
ORimage-upload.min.css
ORimage-upload.css
- include the module in angular (i.e. in
app.js
) -jackrabbitsgroup.angular-image-upload
See the gh-pages
branch, files bower.json
and index.html
for a full example.
See the image-upload.js
file top comments for usage examples and documentation
https://github.com/jackrabbitsgroup/angular-image-upload/blob/master/image-upload.js
See the backendExamples
folder on the gh-pages
branch for examples of backend code to handle the image upload
git checkout gh-pages
- run
npm install && bower install
- write your code then run
grunt
- git commit your changes
- run
- copy over core files (.js and .css/.less for directives) to master branch
git checkout master
git checkout gh-pages image-upload.js image-upload.min.js image-upload.less image-upload.css image-upload.min.css
- update README, CHANGELOG, bower.json, and do any other final polishing to prepare for publishing
- git commit changes
- git tag with the version number, i.e.
git tag v1.0.0
- create github repo and push
- [if remote does not already exist or is incorrect]
git remote add origin [github url]
git push origin master --tags
(want to push master branch first so it is the default on github)git checkout gh-pages
git push origin gh-pages
- [if remote does not already exist or is incorrect]
- (optional) register bower component
bower register angular-image-upload [git repo url]