Using System.Drawing in Linux without libgdiplus

If you ever had to run your .NET Core applications on Linux you may have noticed that one of the main problems is the lack of System.Drawing assembly in standard .NET Core package. Even though Microsoft recommends to use System.Drawing.Common, that is not the ultimate solution. You have to run ‘sudo’ on each user machine to have libgdiplus library installed. And even after that, your rendering results will be slightly different from those you have on Windows machines. In order to cope with this issue, this article covers how to use the System.Drawing in Linux without libgdiplus library.
December 13, 2020 · 3 min · Usman Aziz