Open jamesgurung opened 1 year ago
Works in Source or Object form are licensed to You under the Apache License, Version 2.0 if.
- You are consuming the Work in for use in software licensed under an Open Source or Source Available license.
netstandard 2.0;net6.0
. Therefore it would have to drop the netstandard 2.0 compatibility. There is value in maintaining netStandard2.0 IMHO. @ststeiger being the package owner may have to chime in on that one.This package could possibly move to ImageSharp 2.1.3
which maintains compatibility with netstandard 2.0. (but may not provide the outcome you desire)
Perhaps, there may be a way to isolate the ImageSharp features into own assembly, and create a plugin approach to have a plugin for both ImageSharp 2 and 3 at runtime.
I've created this pull request: https://github.com/ststeiger/PdfSharpCore/pull/353
Use different ImageSharp versions base on .Net version.
Perhaps, there may be a way to isolate the ImageSharp features into own assembly, and create a plugin approach to have a plugin for both ImageSharp 2 and 3 at runtime.
Would this be a possible way forward? So the PdfSharpCore
package can be installed alongside PdfSharpCore.ImageSharp2
or PdfSharpCore.ImageSharp3
. Then developers can choose which to use.
I understand the concern about licensing, however for lots of smaller projects ImageSharp is still free and it would be great to be able to use the latest version in projects without breaking PdfSharpCore.
In the latest major release of ImageSharp, there are some breaking API changes. This causes compatibility issues if a project uses ImageSharp 3 alongside
PdfSharpCore
.Minimal repro:
Project.csproj
Program.cs
Error