クラスの画像に使用されるドッキングウィンドウまたはLinux

クラスの画像に使用されるドッキングウィンドウまたは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

  1. インストールコマンドに参加
    RUN apt-get update -y && apt-get install -y libgdiplus && apt-get clean && ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll
  2. または直接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

おすすめ

転載: www.cnblogs.com/wangSOA/p/12123811.html