Issue:

 I am getting error following error with your SDK using .NET Core library on a Linux machine:

Error Message:

 Method MyImageConvert threw 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.

Stack Trace:

    at System.Runtime.InteropServices.FunctionWrapper`1.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.GdipCreateBitmapFromFile(String filename, IntPtr& bitmap)

   at System.Drawing.Bitmap..ctor(String filename, Boolean useIcm)...


Cause:

Missing gdiplus library dependecy in system.


Solution:

On Ubuntu-like system, run apt-get install libgdiplus

On RHEL, run yum install libgdiplus