Image.Save出错 GDI 一般错误

 一般是路径问题 需要转化为绝对路径 转换为/

if (HttpContext.Current!=null)
outPath = HttpContext.Current.Server.MapPath(outPath);
outPath = outPath.Replace('\','/');

原文地址:https://www.cnblogs.com/ProDoctor/p/6894252.html