region selector: repage image after crop

This commit is contained in:
end-4
2026-04-03 18:51:06 +02:00
parent a06764e111
commit 347ada664d
@@ -32,7 +32,7 @@ Singleton {
const rw = Math.round(width);
const rh = Math.round(height);
const cropBase = `magick ${StringUtils.shellSingleQuoteEscape(screenshotPath)} `
+ `-crop ${rw}x${rh}+${rx}+${ry}`
+ `-crop ${rw}x${rh}+${rx}+${ry} +repage`
const cropToStdout = `${cropBase} -`
const cropInPlace = `${cropBase} '${StringUtils.shellSingleQuoteEscape(screenshotPath)}'`
const cleanup = `rm '${StringUtils.shellSingleQuoteEscape(screenshotPath)}'`