The type initializer for ‘Gdip‘ threw an exception
环境:centos7.6.net 6问题: The type initializer for ‘Gdip’ threw an exception因为代码中使用 SixLabors.ImageSharp去处理图片,在window上是正常的,在centos上就报错了:The type initializer for ‘Gdip’ threw an excepti。解决办法:执行如下命令:sudo ap
·
环境:
- Debian
- .net 6
问题: The type initializer for ‘Gdip’ threw an exception
因为代码中使用 SixLabors.ImageSharp
去处理图片,在window上是正常的,在linux上就报错了:The type initializer for ‘Gdip’ threw an excepti。
解决办法:
执行如下命令:
sudo apt-get install libgdiplus
如果是centos的话使用:
yum install libgdiplus -y
即可!
更多推荐
已为社区贡献10条内容
所有评论(0)