From 6960f98f56638a0332046925321af075d657dde0 Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Fri, 2 Aug 2019 11:09:14 +0530 Subject: [PATCH] ELECTRON-1459 - Update screen snippet image type to png from jpg (#758) --- src/app/screen-snippet-handler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/screen-snippet-handler.ts b/src/app/screen-snippet-handler.ts index e5f63dc6..b9991dd2 100644 --- a/src/app/screen-snippet-handler.ts +++ b/src/app/screen-snippet-handler.ts @@ -39,9 +39,9 @@ class ScreenSnippet { */ public async capture(webContents: Electron.webContents) { logger.info(`screen-snippet-handler: Starting screen capture!`); - this.outputFileName = path.join(this.tempDir, 'symphonyImage-' + Date.now() + '.jpg'); + this.outputFileName = path.join(this.tempDir, 'symphonyImage-' + Date.now() + '.png'); this.captureUtilArgs = isMac - ? [ '-i', '-s', '-t', 'jpg', this.outputFileName ] + ? [ '-i', '-s', '-t', 'png', this.outputFileName ] : [ this.outputFileName, i18n.getLocale() ]; logger.info(`screen-snippet-handler: Capturing snippet with file ${this.outputFileName} and args ${this.captureUtilArgs}!`); @@ -85,7 +85,7 @@ class ScreenSnippet { * * @param captureUtil {string} * @param captureUtilArgs {captureUtilArgs} - * @example execCmd('-i -s', '/user/desktop/symphonyImage-1544025391698.jpg') + * @example execCmd('-i -s', '/user/desktop/symphonyImage-1544025391698.png') */ private execCmd(captureUtil: string, captureUtilArgs: ReadonlyArray): Promise { return new Promise((resolve, reject) => {