Runnung MagicScaler API in .net core middleware #99
-
Hi, Thanks for the great library! In fact I need somthing like this answer (User711641945 posted) for SkiaSharp in this link |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Howdy! You shouldn't have any issue at all using MagicScaler in a middleware component. You don't need to save to a file, just pass any writeable Stream (e.g. The tutorial mentioned in that MSDN social post should have everything you need to get started. You can ignore all the Skia code and particularly the workarounds for Skia quirks and limitations, as MagicScaler will do the correct thing by default when you use |
Beta Was this translation helpful? Give feedback.
Howdy!
You shouldn't have any issue at all using MagicScaler in a middleware component. You don't need to save to a file, just pass any writeable Stream (e.g.
MemoryStream
, or even better, RecyclableMemoryStream) for the output parameter toProcessImage
.The tutorial mentioned in that MSDN social post should have everything you need to get started. You can ignore all the Skia code and particularly the workarounds for Skia quirks and limitations, as MagicScaler will do the correct thing by default when you use
ProcessImage
.