PdfSharpCore
PdfSharpCore copied to clipboard
MissingMethodException: Method not found: 'Void SixLabors.ImageSharp.ImageExtensions.SaveAsJpeg
Hi
I'm facing a problem with jpg images:
....
XImage image = XImage.FromFile(logo);
double x = (250 - image.PixelWidth * 72 / image.HorizontalResolution) / 2;
gfx.DrawImage(image, x, 0);
....
Exception:
MissingMethodException: Method not found: 'Void SixLabors.ImageSharp.ImageExtensions.SaveAsJpeg(SixLabors.ImageSharp.Image`1<!!0>, System.IO.Stream, SixLabors.ImageSharp.Formats.Jpeg.JpegEncoder)'.
The same lines shown above are working fine with png images
PdfSharpCore Version="1.1.18" SixLabors.ImageSharp Version="1.0.0-beta0007" Linux
The latest version (1.1.20) but still facing the same problem
png images are working fine but when I try to add jpg/jpeg image, the exception jumps out
We're also getting this. Tried to pin ImageSharp to the earlier beta referenced by the PdfSharpCore project file, as I'd wondered if this was using reflection and blindly calling a method that no longer existed, but didn't seem to help.
Any news? PdfSharpCore Version="1.1.21" and the problem still exists
We're also getting this. Tried to pin ImageSharp to the earlier beta referenced by the PdfSharpCore project file, as I'd wondered if this was using reflection and blindly calling a method that no longer existed, but didn't seem to help.
Me helped rollback to SixLabours.Image beta-0006 (on all projects of Solution)
Thanks It works fine with SixLabors.ImageSharp 1.0.0-beta0006 SixLabors.ImageSharp.Drawing 1.0.0-beta0006
here the same problem, also with using SixLabors.ImageSharp 1.0.0-beta0006. PNG works fine, but no JPG, BMP, TIFF, GIF