-
Notifications
You must be signed in to change notification settings - Fork 237
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
Cannot insert image. #434
Comments
I have the same problem. Any solution? |
Unfortunately I didn't get an answer. Keep waiting for a solution. |
@balkarov @IngoManthey Add package SixLabors.ImageSharp 2.1.7 |
@chrisg32 I already use ImageSharp version 3.X |
@balkarov ImageSharp version 3.X is not supported with PdfSharpCore. You have to stick with 2.X for now. That is the problem. |
@chrisg32 I have
entered in the project. Unfortunately I still get the following erro |
@IngoManthey That solution has work for me and a few others. Do you have any other projects in your solution that are referencing a higher version of image sharp? I would suggest taking a look at the thread on #426 . @TonyValenti created a fork that adds support for the new image sharp. That could be an alternative for you until the package maintainers accept PR #427 |
@chrisg32 I found the mistake. In my project I used the MudExRichTextEditor library. This uses version 3.1.3, which is why I installed 3.1.3. |
@IngoManthey If you want to use 3.1.3 then you will need to use the fork mentioned in #426 or wait for PR #427. |
In the previous versions I had no problems with the following code.
ImageSource.ImageSourceImpl ??= new ImageSharpImageSource<Rgba32>(); header.AddImage(ImageSource.FromFile(Invoice.Image));
Now I get the following exception:
System.MissingMethodException: Method not found: 'SixLabors.ImageSharp.Image
1<!!0> SixLabors.ImageSharp.Image.Load(System.IO.Stream, SixLabors.ImageSharp.Formats.IImageFormat ByRef)'. at PdfSharpCore.Utils.ImageSharpImageSource
1.FromStreamImpl(String name, Func1 imageStream, Nullable
1 quality)at MigraDocCore.DocumentObjectModel.MigraDoc.DocumentObjectModel.Shapes.ImageSource.FromStream(String name, Func
1 imageStream, Nullable
1 quality)at PdfSharpCore.Drawing.XImage..ctor(Func
1 stream) at PdfSharpCore.Drawing.XImage.FromStream(Func
1 stream)Can someone help me?
The text was updated successfully, but these errors were encountered: