[PR #658] Conversion to use ImageSharp rather than System.Drawing.Common #1246

Closed
opened 2026-01-29 16:58:52 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/ElectronNET/Electron.NET/pull/658

State: closed
Merged: Yes


fixes #637 Conversion to use ImageSharp rather than System.Drawing.Common for cross platform compatibility.

Breaking Changes:

  • System.Drawing.Common is dropped and SixLabors.ImageSharp is introduced.
  • uses of NativeImage.CreateFromBitmap(bitmap, options); is no longer supported, will cause failed builds.

Unexpected Behaviors:

  • uses ToDataUrl will always create png data urls, unexpected output may happen for those that manipulate this output expecting a different data url format.

Obsoletions:

  • CreateFromBitmapOptions & CreateFromBufferOptions have been consolidated into CreateOptions. Implicit conversions added to ease transition.
  • ToBitmapOptions, ToDataUrlOptions, ToPngOptions & BitmapOptions have been consolidated into ImageOptions. Implicit conversions added to ease transition.
**Original Pull Request:** https://github.com/ElectronNET/Electron.NET/pull/658 **State:** closed **Merged:** Yes --- fixes #637 Conversion to use ImageSharp rather than System.Drawing.Common for cross platform compatibility. Breaking Changes: * `System.Drawing.Common` is dropped and `SixLabors.ImageSharp` is introduced. * uses of `NativeImage.CreateFromBitmap(bitmap, options);` is no longer supported, will cause failed builds. Unexpected Behaviors: * uses `ToDataUrl` will always create png data urls, unexpected output may happen for those that manipulate this output expecting a different data url format. Obsoletions: * `CreateFromBitmapOptions` & `CreateFromBufferOptions` have been consolidated into `CreateOptions`. Implicit conversions added to ease transition. * `ToBitmapOptions`, `ToDataUrlOptions`, `ToPngOptions` & `BitmapOptions` have been consolidated into `ImageOptions`. Implicit conversions added to ease transition.
claunia added the pull-request label 2026-01-29 16:58:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1246