BMP 图像在这里:https ://www.filepicker.io/api/file/fdsYv4NSaCGUefBAQmER
以及重现失败的代码:
var fpfile = { url: 'https://www.filepicker.io/api/file/fdsYv4NSaCGUefBAQmER',
文件名:'customers.jpg',mimetype:'image/jpeg',isWriteable:false,大小:629454};
console.log("正在转换...");
/*我们可以显示结果图像的元素*/
var result = document.getElementById("convert-result");
filepicker.convert(fpfile, {宽度: 200, 高度: 200},
函数(new_FPFile){
控制台.log(new_FPFile.url);
结果.src = new_FPFile.url;
}
);
不清楚我在这里做错了什么,任何帮助将不胜感激。
谢谢