クラスの画像に使用されるドッキングウィンドウまたはLinux
異常なエラー
The type initializer for 'Gdip' threw an exception. Unable to load shared library 'libdl' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibdl: cannot open shared object file: No such file or directory
A.リファレンスZKWeb.System.Drawing
Install-Package ZKWeb.System.Drawing
第二にSystem.DrawingCore使用してページを引用
元
System.Drawingを使用して、Aを、
System.Drawing.Imaging使用;
の代わりにZKWeb
System.DrawingCoreを使用して、
使用してSystem.DrawingCore.Imagingを。
III。修正DockerFile
- インストールコマンドに参加
RUN apt-get update -y && apt-get install -y libgdiplus && apt-get clean && ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll
- または直接stulzq / DOTNET:2.2.0-aspnetcore-ランタイムと、画像下のパッケージとして
意志
mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim ASベースから
代わりに
stulzq / DOTNET FROM: 2.2.0-aspnetcoreランタイム-with-ベースAS画像
送信元アドレス:https://github.com/langfengac/Demo/tree/master/ImagesIssue