PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

throw exception Method not found

Open LxLucio opened this issue 1 year ago • 3 comments

ImageSharp version 3.0.1 PdfSharpCore version 1.3.26 and higher

var stream = new MemoryStream(); image.Save(stream, new PngEncoder()); XImage.FromStream(()=> stream);

throw exception "Method not found: 'SixLabors.ImageSharp.Image`1<!!0> SixLabors.ImageSharp.Image.Load(System.IO.Stream, SixLabors.ImageSharp.Formats.IImageFormat ByRef)'."

When I try ImageShar version 2.1.3 it works fine.

LxLucio avatar May 13 '23 19:05 LxLucio

Same happened to me.

I used PdfSharpCore v1.3.56 in a project. Worked fine until I installed ImageSharp, v3.0.1, to use in another unit. Then I got this exception.

Downgrade ImageSharp to v2.1.4 makes it work again.

tomashal avatar May 23 '23 10:05 tomashal

Same issue here using: PdfSharpCore (1.3.56) SixLabors.ImageSharp (3.0.1)

mauriciomagni avatar May 28 '23 14:05 mauriciomagni

Comfirming issue: PdfSharpCore (1.3.63) SixLabors.ImageSharp (3.1.3)

Downgraded ImageSharp down to 2.1.7 as a stopgap until 3.x is supported.

KevinHoward avatar Apr 09 '24 18:04 KevinHoward