Image format Unknown
问题 I am trying to read an image into Base64 format using .Net Core 2.2 and it throws ArgumentException: Image format is unknown. System.Drawing.Image.FromFile(string filename, bool useEmbeddedColorManagement) The filePath is correct, and I have double and triple checked that the file exists. I have attempted naming my PNGs with both upper and lowercase extension. This does not happen locally on windows, but once the application is deployed to linux is happens. The code in question is below.