This repository has been archived by the owner on Sep 22, 2022. It is now read-only.
在CentOS8环境中LoginByQrCode获取二维码报错 #57
Labels
information
This issue notices some information may be useful.
2.5.1.23版本
在CentOS8环境中,调用LoginByQrCode获取二维码时
依赖框架3.1运行时报错:
Unhandled exception. System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
---> System.DllNotFoundException: Unable to load shared library 'libgdiplus' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibgdiplus: cannot open shared object file: No such file or directory
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.GdipCreateBitmapFromScan0(Int32 width, Int32 height, Int32 stride, Int32 format, IntPtr scan0, IntPtr& bitmap)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at QRCoder.QRCode.GetGraphic(Int32 pixelsPerModule, Color darkColor, Color lightColor, Bitmap icon, Int32 iconSizePercent, Int32 iconBorderWidth, Boolean drawQuietZones)
at BiliAccount.Core.ByQRCode.GetQrcode(Color Foreground, Color Background, Boolean IsBorderVisable)
at BiliAccount.Linq.ByQRCode.LoginByQrCode(Color Foreground, Color Background, Boolean IsBorderVisable)
at BiliAccount.Linq.ByQRCode.LoginByQrCode(String strForeground, String strBackground, Boolean IsBorderVisable)
The text was updated successfully, but these errors were encountered: