Rollback unintended changes to imagesharp 2

This commit is contained in:
Bjarke Berg
2023-09-22 10:22:25 +02:00
parent 03108f4af4
commit 43cc3b8314
3 changed files with 12 additions and 18 deletions

View File

@@ -64,7 +64,7 @@ public class CropWebProcessor : IImageWebProcessor
Vector2 xy2 = ExifOrientationUtilities.Transform(new Vector2(right, bottom), Vector2.Zero, Vector2.One, orientation);
// Scale points to a pixel based rectangle
Size size = image.Image.Size;
Size size = image.Image.Size();
return Rectangle.Round(RectangleF.FromLTRB(
MathF.Min(xy1.X, xy2.X) * size.Width,