You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DegenerateTransformException during some image resizes after upgrading to 4.0.0. #3156
I have verified that I am running the latest version of ImageSharp
I have verified if the problem exist in both DEBUG and RELEASE mode
I have searched open and closed issues to ensure it has not already been reported
ImageSharp version
4.0.0
Other ImageSharp packages and versions
n/a
Environment (Operating system, version and so on)
Windows 11 ARM.
.NET Framework version
10.0
Description
Simple apparent regression observed in a local library generating mipmap chains via progressive image downsizing.
Steps to Reproduce
Create an empty C# console project with ImageSharp 4.0.0 referenced and the following:
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Image<Rgba32> image = new(2048, 2048, Color.White.ToPixel<Rgba32>());
image.Mutate(a => a.Resize(1, 1));
The resize above fails under package version 4.0.0 but not 3.1.12.
Observed:
SixLabors.ImageSharp.Processing.Processors.Transforms.DegenerateTransformException: 'Matrix is degenerate. Check input values.'
Activity
Fix degeneracy check for resize transforms