-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Im trying to use your PhotoSauce to resize a image loaded on Memory stream, is it possible to make it supported on Blazor?
Code that Im using:
var memoryStream = new MemoryStream(bytes, true);
var settings = new ProcessImageSettings { Width = Width , Height = Height };
var outStream = new FileStream(file.Name, FileMode.OpenOrCreate, FileAccess.ReadWrite);
MagicImageProcessor.ProcessImage(memoryStream, outStream, settings);
I Get this error:
The type initializer for 'PhotoSauce.Interop.Wic.IStreamImpl' threw an exception.
---> System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(Type type, Int32 size)
at PhotoSauce.Interop.Wic.IStreamImpl.createVtbl()
at PhotoSauce.Interop.Wic.IStreamImpl..cctor()