Giter Site home page Giter Site logo

Cannot insert image. about pdfsharpcore HOT 10 OPEN

IngoManthey avatar IngoManthey commented on June 11, 2024
Cannot insert image.

from pdfsharpcore.

Comments (10)

balkarov avatar balkarov commented on June 11, 2024

I have the same problem. Any solution?

from pdfsharpcore.

IngoManthey avatar IngoManthey commented on June 11, 2024

Unfortunately I didn't get an answer. Keep waiting for a solution.

from pdfsharpcore.

mtarlac avatar mtarlac commented on June 11, 2024

#426

from pdfsharpcore.

chrisg32 avatar chrisg32 commented on June 11, 2024

@balkarov @IngoManthey Add package SixLabors.ImageSharp 2.1.7

from pdfsharpcore.

balkarov avatar balkarov commented on June 11, 2024

@chrisg32 I already use ImageSharp version 3.X

from pdfsharpcore.

chrisg32 avatar chrisg32 commented on June 11, 2024

@balkarov ImageSharp version 3.X is not supported with PdfSharpCore. You have to stick with 2.X for now. That is the problem.

from pdfsharpcore.

IngoManthey avatar IngoManthey commented on June 11, 2024

@chrisg32 I have

<PackageReference Include="SixLabors.ImageSharp" Version="2.1.7" />
<PackageReference Include="PdfSharpCore" Version="1.3.63" />

entered in the project. Unfortunately I still get the following erro
[08:57:34 ERR] InvoiceController.GetPrintInvoice System.MissingMethodException: Method not found: 'SixLabors.ImageSharp.Image1<!!0> SixLabors.ImageSharp.Image.Load(System.String, SixLabors.ImageSharp.Formats. IImageFormat ByRef)'. at PdfSharpCore.Utils.ImageSharpImageSource1.FromFileImpl(String path, Nullable`1 quality)

from pdfsharpcore.

chrisg32 avatar chrisg32 commented on June 11, 2024

@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

from pdfsharpcore.

IngoManthey avatar IngoManthey commented on June 11, 2024

@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.
I would like to do without the library. Is there a way to use version?

from pdfsharpcore.

chrisg32 avatar chrisg32 commented on June 11, 2024

@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.

from pdfsharpcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.