I'm developping a web-app which aim to be used by mobile users, mainly iOS/Android, in order to do some image processing and send it to a server. However, my main constraint is that it must not be deployed as a native app. That's why I'll have to do this in HTML5 + Javascript and cannot delegate it to an image processing app.
I don't have any requirement for the server side implementation, at this moment, I think that Python/C++ or Golang would be nice but that's not so much important.
The basic operations that will be performed are Auto-crop + Deskew + B&W levels in order to send a "clean" image to the server.
I'm wondering what is the best way to do this. In one hand, I think that processing the image on client-side would be the best idea but I also have to rewrite all processing algorithms in Javascript. Plus, I'm a bit skeptical about the performances.
On the other hand, I'm thinking about server-side processing which can be faster but the workflow would be too heavy (mainly because of the number of interactions client-server, one for each image processing, one for sending them).
I saw this post Client-side image processing and some people recommended Pixlr
but I didn't found the needed functionnalities.
Does someone know a good Javascript API/Code which allows me to do what I want ? What is the "best practice" to do so ?
Thanks !