title: Server-side graphics in ASP.NET Core
body: <p>I've recently upgraded an ASP.NET MVC application from ASP.NET to ASP.NET Core.</p>
  
  <p>In my controller action, I had a piece of code that relied on System.Drawing to create a profile picture</p>
  
  <pre><code>using (FileStream stream = new FileStream(HttpContext.Server.MapPath($"~/Content/UserFiles/{AuthenticatedUser.Id.ToString()}.jpg"), FileMode.OpenOrCreate))
  {
      Image image = Image.FromStream(model.DisplayPicture.InputStream);
      image.Save(stream, System.Drawing.Imaging.ImageFormat.Jpeg);
  }
  </code></pre>
  
  <p>The image data is posted to the server as a Base64 encoded image</p>
  
  <pre><code>data:image/png;base64,....
  </code></pre>
  
  <p>Since there's no <code>System.Drawing</code> in .NET Core, are there any other libraries that can achieve this?</p>