Skip to content

Commit 603f3e5

Browse files
committed
Remove x + y from targetrectangle
1 parent d1ffdf8 commit 603f3e5

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/ImageSharp.Web/Processors/ResizeWebProcessor.cs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,6 @@ public class ResizeWebProcessor : IImageWebProcessor
6262
/// </summary>
6363
public const string Compand = "compand";
6464

65-
/// <summary>
66-
/// The command constant for the resize TargetRectangle X
67-
/// </summary>
68-
public const string TargetRectangleX = "targetrectanglex";
69-
70-
/// <summary>
71-
/// The command constant for the resize TargetRectangle X
72-
/// </summary>
73-
public const string TargetRectangleY = "targetrectangley";
74-
7565
/// <summary>
7666
/// The command constant for the resize TargetRectangle X
7767
/// </summary>
@@ -196,15 +186,7 @@ private static Size ParseSize(
196186
int width = (int)parser.ParseValue<uint>(commands.GetValueOrDefault(TargetRectangleWidth), culture);
197187
int height = (int)parser.ParseValue<uint>(commands.GetValueOrDefault(TargetRectangleHeight), culture);
198188

199-
if (!commands.Contains(TargetRectangleX) || !commands.Contains(TargetRectangleY))
200-
{
201-
return new Rectangle(0, 0, width, height);
202-
}
203-
204-
int x = (int)parser.ParseValue<uint>(commands.GetValueOrDefault(TargetRectangleX), culture);
205-
int y = (int)parser.ParseValue<uint>(commands.GetValueOrDefault(TargetRectangleY), culture);
206-
207-
return new Rectangle(x, y, width, height);
189+
return new Rectangle(0, 0, width, height);
208190
}
209191

210192
private static PointF? GetCenter(

0 commit comments

Comments
 (0)