Skip to content

PhotoSauce on Blazor WebAssembly not Supported #81

@Miguefie

Description

@Miguefie

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()

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions