首页 > 技术文章 > kineditor 处理上传的图片为缩略图的方法

lxclqy 2014-06-21 17:07 原文

更改后代码

//imgFile.SaveAs(filePath);


String fileUrl = saveUrl + Common.ImageHelper.SaveThumbnailByOriginal(imgFile, dirPath, 300);

Hashtable hash = new Hashtable();

更改前代码


imgFile.SaveAs(filePath);

String fileUrl = saveUrl + newFileName;

其中 Common.ImageHelper.SaveThumbnailByOriginal 这个是自己写的一个图片处理方法。

推荐阅读