title: System.Drawing is not supported on this platform on Azure Function
body: <p>I have read the following <a href="https://stackoverflow.com/questions/51904125/azure-function-gives-error-system-drawing-is-not-supported-on-this-platform">answer</a>.</p>
  
  <p>It states that App Service <a href="https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#win32ksys-user32gdi32-restrictions" rel="nofollow noreferrer">sandboxing</a> has some restrictions</p>
  
  <blockquote>
    <h3>Win32k.sys (User32/GDI32) Restrictions</h3>
    
    <p>For the sake of radical attack surface area reduction, <strong>the sandbox prevents almost all of the Win32k.sys APIs from being called, which practically means that most of User32/GDI32 system calls are blocked.</strong> For most applications this is not an issue since most Azure Web Apps do not require access to Windows UI functionality (they are web applications after all).</p>
  </blockquote>
  
  <p>However I have some image resizing logic (using the EPplus excel library) that works in a normal asp.net core controller but fails in an Azure function (hosted in the exact same app service plan running on the Basic tier) with the message:</p>
  
  <blockquote>
    <p>System.Drawing is not supported on this platform on Azure Function</p>
  </blockquote>
  
  <p>Is there any other additional restriction unrelated to the Web App Sandbox. eg nuances between wep apps and azure function apps.</p>
  
  <p>We wanted to use Azure Function to generate all our excel reports however this seems impossible now. Is there any other options? I even tried Amazon Lambda but I ran into this issue: <a href="https://github.com/JanKallman/EPPlus/issues/83" rel="nofollow noreferrer">https://github.com/JanKallman/EPPlus/issues/83</a></p>