-1
我使用jQuery文件上传保存的大小:jQuery的文件上传:原始图像
Original file;
Big;
Medium;
Thumb;
现在我送50个图像和原件文件夹大小的85%。
原始图像保存为1280像素,我如何将其更改为800x800?
我使用jQuery文件上传保存的大小:jQuery的文件上传:原始图像
Original file;
Big;
Medium;
Thumb;
现在我送50个图像和原件文件夹大小的85%。
原始图像保存为1280像素,我如何将其更改为800x800?
解决方法是更改: imageMaxWidth和imageMaxHeight参数。完整示例:
$('#fileupload').fileupload({
url: url,
dataType: 'json',
paramName: 'files[]',
autoUpload: true,
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
maxFileSize: 999000,
// Enable image resizing, except for Android and Opera,
// which actually support image resizing, but fail to
// send Blob objects via XHR requests:
disableImageResize: /Android(?!.*Chrome)|Opera/
.test(window.navigator.userAgent),
//previewMaxWidth: 100,
//previewMaxHeight: 100,
imageMaxWidth: 800,
imageMaxHeight: 800,
imageCrop: false,
previewCrop: true
});
为什么选择投票?耶稣。 –