refactor toolbar fab

This commit is contained in:
end-4
2026-04-03 19:27:28 +02:00
parent 01e2eb433b
commit 2674382b5f
5 changed files with 165 additions and 122 deletions
@@ -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)}'`