Replies: 3 comments
-
I also find it bizarre that SkiaSharp requires you to work with the bitmap format, but cannot export (Encode) to that same format. |
Beta Was this translation helpful? Give feedback.
-
SkiaSharp can decode a wide variety of codecs - even BMP, but it is focused on drawing to the screen rather than files. Typically, PNG is smaller and more portable than BMP, so adding BMP was no net advantage. |
Beta Was this translation helpful? Give feedback.
-
What about at least throwing an exception rather than return null for Encode calls? It would save a lot of debugging time. |
Beta Was this translation helpful? Give feedback.
-
I'm migrating my project from System.Drawing.Common to SkiaSharp for cross platform Linux docker usage. Managed to load all my assets in multiple format, draw on them, return jpg for my web service, everything was going fine. Until I ended up trying to save as a .BMP file and got null.
Found #320 that basically say it's not supported in skia directly, and it's right, from this page it seems only supported on iOS/Mac.
This is pretty frustrating considering the documentation of skiasharp Encode() doesn't mention it.
I would have thought it wouldn't be so hard to find a library thay cab handle this most basic format.
Beta Was this translation helpful? Give feedback.
All reactions