# html5-make-thumb **Repository Path**: andy100/html5-make-thumb ## Basic Information - **Project Name**: html5-make-thumb - **Description**: HTML5 Make thumb - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2014-08-22 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README html5-make-thumb ================ Create thumbnail with HTML5. Useage ------- ``` html
``` ``` javascript var $form = $('#j-form'); var $file = $('#j-file'); $file.makeThumb({ width: 400, height: 400, mark: {padding: 5, src: 'mark.png', width: 30, height: 30}, success: function(dataURL, tSize, file, sSize, fEvt) { // post data var $up = $(''); $up.insertAfter($file).val(dataURL); $file.remove(); $form.submit(); } }); ``` [docs](http://www.fantxi.com/blog/archives/create-thumbnail-images-html5/) reference --------- - http://stackoverflow.com/questions/7296426/how-can-i-check-if-the-browser-support-html5-file-upload-formdata-object - http://www.html5rocks.com/en/tutorials/file/dndfiles/ - https://github.com/Modernizr/Modernizr/blob/master/feature-detects/file-api.js