Skip to content

Commit

Permalink
Break stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaemonCahill committed May 1, 2024
1 parent 4cd1376 commit 2e32821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image-utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function cropImage(inImage: PNG, rect: ElementRect, pixelRatio = 1) {

const outImage = new PNG({ width: imageWidth, height: imageHeight });

const safeLeft = Math.max(roundedRect.left, 0) * pixelRatio;
const safeLeft = 0; // Math.max(roundedRect.left, 0) * pixelRatio;
const safeTop = Math.max(roundedRect.top, 0) * pixelRatio;

const safeWidth = Math.min(imageWidth, inImage.width - safeLeft);
Expand Down

0 comments on commit 2e32821

Please sign in to comment.