-
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
Dependency issue with new version of the ImageSharp #426
Comments
@dejanmauer - lots of folks are running into this issue. I am really hopeful that @ststeiger will enable us to use the latest version of ImageSharp easily. I've created this branch: That enables the latest version of ImageSharp for modern .NET versions and uses the older version for legacy .NET versions. Here's to hoping @ststeiger incorporates it! |
There is now a security issue on latest working version of image sharp (2.1.6): Edit: |
@ststeiger Can you please comment on all these requests on updating for ImageSharp. This is becoming an issue. |
Later today I'll be submitting a PR that contains everything necessary to resolve this security issue. |
Will it include being able to use v3 of ImageSharp. And the bigger question, will @ststeiger respond and approve the PR. |
Yes. V3 for modern .NET and V2 for framework. We'll have to wait and see if the maintainer of this package accepts it. |
Hi @ststeiger - Which upgrades various packages, including ImageSharp, to their latest stable, secure versions. |
@johnwc - my PR is here if you want to take a look. |
What are the main differences between the two versions of |
@johnwc - In my experience, when you're dealing with subtle variances like this, you can easily get yourself in trouble by having a single file where you |
It would be better to maintain one file with a few compile time directives, than two files with almost same code. Think of someone else coming in and only changing one file for a security flaw. If it was in the same file, it would be seen and updated at the same time. Also, visual studio makes it very clear on what directive is currently being worked on and debugged with its coloring of the enabled directive. In my 25 years of development, I have never come across an issue of compile time directives being in a file in relation to this version vs that version compiling. The directives make it very clear what is going on. |
That's not a big deal to me either way as long as we can get the maintainer to merge and publish an update. |
Is there any news on this subject ? We are using this great library but this issue starts to be a big pain on our side :( Thanks ! |
Bump. :) |
same problem here ;( |
+1 |
It turns out it's actually pretty easy to work around this by providing a new, ImageSharp 2/3 compatible ImageSource to the Just create the class:
And provide it to the static property at application startup (in the Program.cs for instance):
|
Did anyone else notice that someone just merged an update for dependencies, but did not include any dependency updates for ImageSharp? |
It did not go unnoticed.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: John Carew ***@***.***>
Sent: Sunday, July 28, 2024 2:42:33 PM
To: ststeiger/PdfSharpCore ***@***.***>
Cc: Tony Valenti ***@***.***>; Comment ***@***.***>
Subject: Re: [ststeiger/PdfSharpCore] Dependency issue with new version of the ImageSharp (Issue #426)
Did anyone else notice that someone just merged an update for dependencies, but did not include any dependency updates for ImageSharp?
—
Reply to this email directly, view it on GitHub<#426 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADH2UVVACONF7MYR7PPYVJ3ZOVCSTAVCNFSM6AAAAABDVVUSK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGYZDGOBZGU>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I assumed it had to do with the new licensing model for ImageSharp and thus wasn't expecting an update... ever. |
@robbaman @ststeiger @TonyValenti ImageSharp supposedly already gave the green light to this project for using it under the new license without issue. |
Yes they did but I believe that does not matter to @ststeiger |
Can you point us to where they did? |
@robbaman
|
Hi @IngoManthey Yes it should. The code I mentioned sets a delegate in a static property. This delegate is used by the |
Yes it was my mistake, now everything works. Thanks for the answer |
Let say, I would like to load image (png) from file:
XImage image = XImage.FromFile("d:\\temp\\qrcode.png");
In case I have reference in my project to ImageSharp > 2.1.6 I get this error:
System.MissingMethodException: 'Method not found: 'SixLabors.ImageSharp.Image`1<!!0> SixLabors.ImageSharp.Image.LoadPixelData(Byte[], Int32, Int32)'.'
Can this be fixed to keep compatibiliry with new versions of ImageSharp (3.X)?
The text was updated successfully, but these errors were encountered: