forked from Shinonome/dots-hyprland
region selector: repage image after crop
This commit is contained in:
@@ -32,7 +32,7 @@ Singleton {
|
|||||||
const rw = Math.round(width);
|
const rw = Math.round(width);
|
||||||
const rh = Math.round(height);
|
const rh = Math.round(height);
|
||||||
const cropBase = `magick ${StringUtils.shellSingleQuoteEscape(screenshotPath)} `
|
const cropBase = `magick ${StringUtils.shellSingleQuoteEscape(screenshotPath)} `
|
||||||
+ `-crop ${rw}x${rh}+${rx}+${ry}`
|
+ `-crop ${rw}x${rh}+${rx}+${ry} +repage`
|
||||||
const cropToStdout = `${cropBase} -`
|
const cropToStdout = `${cropBase} -`
|
||||||
const cropInPlace = `${cropBase} '${StringUtils.shellSingleQuoteEscape(screenshotPath)}'`
|
const cropInPlace = `${cropBase} '${StringUtils.shellSingleQuoteEscape(screenshotPath)}'`
|
||||||
const cleanup = `rm '${StringUtils.shellSingleQuoteEscape(screenshotPath)}'`
|
const cleanup = `rm '${StringUtils.shellSingleQuoteEscape(screenshotPath)}'`
|
||||||
|
|||||||
Reference in New Issue
Block a user