Write you own code with HTML5 Canvas, file and Blob Url.
All this code will take half of screen). If you working with very large images, e.g. 6000×9000 for better quality you should use this lib
https://github.com/nodeca/pica instead of canvas.
This is most powerful lib that i know at js. Lib with several resize algorithms for people who knnow the difference.
solved Best Java Script Plugin for Image compression with many browsers support [closed]