Reduce capture size

This commit is contained in:
Yann Bertrand 2022-08-18 16:12:33 +02:00
parent de015953ae
commit 1c12043fb2
4 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View file

@ -16,7 +16,7 @@ module.exports = {
await runner
.setDefault('com.apple.TextEdit', 'RichText', '-bool false', '0')
.openApp('TextEdit', fileName)
.moveAndResizeApp('TextEdit', 0, 0, 744, 451)
.moveAndResizeApp('TextEdit', 0, 0, 740, 400)
.captureApp('TextEdit', `${outputPath}/false.png`)
.deleteDefault('com.apple.TextEdit', 'RichText')
.killApp('TextEdit')

View file

@ -19,7 +19,7 @@ module.exports = {
await runner
.setDefault('com.apple.TextEdit', 'RichText', '-bool true', '1', '')
.openApp('TextEdit', filename)
.moveAndResizeApp('TextEdit', 0, 0, 744, 451)
.moveAndResizeApp('TextEdit', 0, 0, 740, 400)
.captureApp('TextEdit', `${outputPath}/true.png`)
.deleteDefault('com.apple.TextEdit', 'RichText')
.killApp('TextEdit')