Investigating how ImageMagick, and more particularly the .NET wrapper around it - Magick.NET, works within the context of ASP.NET.
This contains a couple of working examples exposed as API endpoints. The processing relies on some test images which aren't in the repository so you'll need to provide those yourself if you wish to take it for a test drive.