如何更改 plupload 缩略图的大小?
How to change size of plupload thumbnail?
我正在使用 plupload 插件 让用户在 input[file]
中拖放图像。默认缩略图大小为 100x60。我怎样才能把这个尺寸改成另一个尺寸?我的初始化代码是:
$("#uploader1").plupload({
// General settings
runtimes : 'html5,flash,silverlight,html4',
url : '../upload.php',
max_file_count: 1,
chunk_size: '1mb',
filters : {
// Maximum file size
max_file_size : '1000mb',
// Specify what files to browse for
mime_types: [
{title : "Image files", extensions : "jpg,gif,png"},
{title : "Zip files", extensions : "zip"}
]
},
sortable: false,
dragdrop: true,
views: {
list: true,
thumbs: true, // Show thumbs
active: 'thumbs'
},
// Flash settings
flash_swf_url : '../../js/Moxie.swf',
// Silverlight settings
silverlight_xap_url : '../../js/Moxie.xap'
});
此小部件具有 thumb_width
和 thumb_height
选项来自定义缩略图大小。查看 Allow users to make thumbnails larger in the UI Widget。
$("#uploader1").plupload({
// Your settings
thumb_width: 200,
thumb_height: 120
});
我正在使用 plupload 插件 让用户在 input[file]
中拖放图像。默认缩略图大小为 100x60。我怎样才能把这个尺寸改成另一个尺寸?我的初始化代码是:
$("#uploader1").plupload({
// General settings
runtimes : 'html5,flash,silverlight,html4',
url : '../upload.php',
max_file_count: 1,
chunk_size: '1mb',
filters : {
// Maximum file size
max_file_size : '1000mb',
// Specify what files to browse for
mime_types: [
{title : "Image files", extensions : "jpg,gif,png"},
{title : "Zip files", extensions : "zip"}
]
},
sortable: false,
dragdrop: true,
views: {
list: true,
thumbs: true, // Show thumbs
active: 'thumbs'
},
// Flash settings
flash_swf_url : '../../js/Moxie.swf',
// Silverlight settings
silverlight_xap_url : '../../js/Moxie.xap'
});
此小部件具有 thumb_width
和 thumb_height
选项来自定义缩略图大小。查看 Allow users to make thumbnails larger in the UI Widget。
$("#uploader1").plupload({
// Your settings
thumb_width: 200,
thumb_height: 120
});