Skip to content

Conversion to use ImageSharp rather than System.Drawing.Common #658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

danatcofo
Copy link
Contributor

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.

…ng.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.
@GregorBiswanger GregorBiswanger self-assigned this Apr 6, 2022
@GregorBiswanger GregorBiswanger added this to the 18.6.1 milestone Apr 6, 2022
@GregorBiswanger GregorBiswanger merged commit 70ca42a into ElectronNET:master Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System.Drawing.Common is targeted at Windows only
2 participants