IImage.Save (SkiaImage) not implemented
See original GitHub issueThis is a follow-on from #436. Building some code to replace System.Drawing.Common image manipulation for a ASP.NET 6 website running on Windows. Tried to take an IImage over to a byte array via a memory stream as shown here. The exact code doing this work is:
public static byte[] ConvertImageToByteArray(IImage imageToConvert, ImageFormat formatOfImage)
{
byte[] ret;
using (var ms = new MemoryStream())
{
imageToConvert.Save(ms, formatOfImage);
ret = ms.ToArray();
}
return ret;
}
The IImage was extracted from a byte array using SkiaImage as shown in #436. The call to .Save() ends up with a PlatformNotImplementedException.
The same exception is thrown if the using block above is replaced with the AsBytes extension method:
ret = imageToConvert.AsBytes(formatOfImage);
Being that I’m using version 6.0.300 of both the Microsoft.Maui.Graphics and Microsoft.Maui.Graphics.Skia NuGet packages, I thought MAUI was up to feature complete status. Did this method get overlooked is is Skia not intended to support Windows?
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:8 (2 by maintainers)

Top Related StackOverflow Question
Are there plans to publish the GDI package?
I’d be more inclined to use and contribute to it if it were published on NuGet with the other packages
@StuffOfInterest https://github.com/dotnet/Microsoft.Maui.Graphics/pull/475