netcore 使用System.Drawing 出现如下错误:

Unhandled Exception: System.TypeInitializationException: The type initializer for 'Gdip' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.
at System.Runtime.InteropServices.FunctionWrapper`.get_Delegate()
at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output)
at System.Drawing.SafeNativeMethods.Gdip..cctor()
--- End of inner exception stack trace ---
at System.Drawing.SafeNativeMethods.Gdip.GdipLoadImageFromFile(String filename, IntPtr& image)
at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
at System.Drawing.Image.FromFile(String filename)

安装 libgdiplus

  同样的问题 https://github.com/dotnet/corefx/issues/25157

解决方法: https://q.cnblogs.com/q/103863/

解决方法: https://q.cnblogs.com/q/107946/

最新文章

  1. HDU 1285 确定比赛名次 拓扑排序模板题
  2. bootstrap-5
  3. 转载:使用命令行启动VirtualBox虚拟机
  4. mysql提示2002错误的解决方法
  5. java动态加载类和静态加载类笔记
  6. Pycharm 使用 (一)
  7. CSS Sprites图片处理
  8. Asp.Net+Extjs实现登录
  9. mysql数据库问答
  10. Java 中UDP原理机制及实现方式介绍(建议阅读者阅读前了解下Java的基础知识,一方便理解)
  11. Android界面刷新方法
  12. 写代码质量改善java计划151建议——导航开始
  13. selenium测试(Java)-- 显式等待(九)
  14. css点滴1—八种方式实现元素垂直居中
  15. 干货分享:vue2.0做移动端开发用到的相关插件和经验总结(2)
  16. .net中几个经常用到的字符串的截取
  17. Android开发中adb命令的常用方法
  18. 网页不能显示PNG验证码的解决办法
  19. 在centos上安装smplayer播放器
  20. 一个简单python爬虫的实现——爬取电影信息

热门文章

  1. Linux:Gentoo系统的安装笔记(三)
  2. L362 When to Bring up Salary During the Job Interview Process
  3. 剑指Offer 60. 把二叉树打印成多行 (二叉树)
  4. 周强 201771010141《面对对象程序设计(java)》第十周学习总结
  5. session的部分理解
  6. 浅谈在java中list集合的排序问题
  7. WPF: 在ListView中添加Checkbox列表
  8. Python多进程并发(multiprocessing)
  9. 往redis中存储数据是利用pipeline方法
  10. 在Eclipse中使用版本管理工具SVN