An open API service indexing awesome lists of open source software.

https://github.com/endel/magick-uploader.js

Resize images on client-side before sending it to your server.
https://github.com/endel/magick-uploader.js

Last synced: about 1 year ago
JSON representation

Resize images on client-side before sending it to your server.

Awesome Lists containing this project

README

          

magick-uploader.js
===

Resize images on client-side before sending it to your server. It requires
FileAPI and Canvas features from your client browser, which may be polyfilled
using Flash bridges, such as [flashcanvas](http://code.google.com/p/flashcanvas)
and [FileReader](https://github.com/Jahdrien/FileReader).

Check `examples` directory, run `bundle install` and `rackup` to see in action.

How to use
---

$(function() {
$('input[type=file]').MagickUploader({ resize: "200x200^" });
});

TODO
---

Polyfill accourding to user's browser. Currently you must do it manually, using
[Modernizr](https://github.com/Modernizr/Modernizr), or [yepnopejs](https://github.com/SlexAxton/yepnope.js).

Browser compatibility
---

Supported natively:

- Chrome 13+
- Opera 11.1+
- Opera Mobile 11.1+
- Android 3.0+

Via polyfill:

- Internet Explorer 7+
- Safari 4+

License
---

This library is released under MIT License. Please see LICENSE file.