http://html5.sapnagroup.com/demos/dragDropUploadsCrop/ 此鏈接會引導你想要什麼 http://html5.sapnagroup.com/2012/08/preview-and-crop-before-upload/
Files with following extensions are only allowed
allowedExtensions: ['gif','jpg','jpeg','png','txt'],
showCropTool: 1,
sizeLimit: 10737418240, // Maximum filesize limit which works without any problems is 30MB. Current limit is set to 10MB = 10 * 1024 * 1024
params: {
'uploadedBy': 'Sapnagroup',
'x1': '0', // x coordinates of the image
'y1': '0', // x coordinates of the image
'x2': '300', // x coordinates of the image
'y2': '150', // y coordinates of the image
'cWidth': '300', // required crop width
'cHeight': '150', // required crop heignt
'oWidth': '800', // width of the crop preview image
'oHeight': '600', // height of the crop preview image
'rWidth': '300', // resize width
'rHeight': '150' // resize height
},