-
-
Notifications
You must be signed in to change notification settings - Fork 888
Closed
Labels
Description
Prerequisites
- I have written a descriptive issue title
- I have verified that I am running the latest version of ImageSharp
- I have verified if the problem exist in both
DEBUGandRELEASEmode - I have searched open and closed issues to ensure it has not already been reported
ImageSharp version
2.1.2
Other ImageSharp packages and versions
???
Environment (Operating system, version and so on)
Windows 11 x64
.NET Framework version
6.0.5
Description
Hi ImageSharp,
Run this code with the attached image and you'll see that loading TIFFs is 50x slower than SDI.
Can you please take a look? Happy to buy a license / sponsorship if we can get this resolved sooner rather than later.
Steps to Reproduce
var Input = $@"C:\Users\TonyV\Downloads\Image1.tiff";
var SW1 = System.Diagnostics.Stopwatch.StartNew();
for (int i = 0; i < 100; i++) {
System.Drawing.Image.FromFile(Input);
}
Console.WriteLine($@"SW1 {SW1.Elapsed}");
var SW2 = System.Diagnostics.Stopwatch.StartNew();
for (int i = 0; i < 100; i++) {
SixLabors.ImageSharp.Image.Load(Input);
}
Console.WriteLine($@"SW2 {SW2.Elapsed}");