¡@

Home 

javascript Programming Glossary: cropmarginwidth

Cropping images in the browser BEFORE the upload

http://stackoverflow.com/questions/12728188/cropping-images-in-the-browser-before-the-upload

looks like this var img new Image img.onload function var cropMarginWidth 5 canvas ' canvas ' .attr width img.width 2 cropMarginWidth.. 5 canvas ' canvas ' .attr width img.width 2 cropMarginWidth height img.height 2 cropMarginWidth .hide .appendTo 'body'.. width img.width 2 cropMarginWidth height img.height 2 cropMarginWidth .hide .appendTo 'body' ctx canvas.get 0 .getContext '2d'..