From 10a5817c2393e43851381a92d46b409790594de4 Mon Sep 17 00:00:00 2001 From: Nayam Amarshe <25067102+NayamAmarshe@users.noreply.github.com> Date: Wed, 22 Nov 2023 21:42:47 +0530 Subject: [PATCH] Add compression --- common/types/types.d.ts | 3 +++ renderer/pages/index.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/common/types/types.d.ts b/common/types/types.d.ts index 07842de..f2b2788 100644 --- a/common/types/types.d.ts +++ b/common/types/types.d.ts @@ -6,6 +6,7 @@ export type ImageUpscaylPayload = { gpuId: string; saveImageAs: string; overwrite: boolean; + compression: number; noImageProcessing: boolean; }; @@ -16,6 +17,7 @@ export type DoubleUpscaylPayload = { scale: string; gpuId: string; saveImageAs: string; + compression: number; noImageProcessing: boolean; }; @@ -26,5 +28,6 @@ export type BatchUpscaylPayload = { gpuId: string; saveImageAs: string; scale: string; + compression: number; noImageProcessing: boolean; }; diff --git a/renderer/pages/index.tsx b/renderer/pages/index.tsx index 506bb3f..7f301d0 100644 --- a/renderer/pages/index.tsx +++ b/renderer/pages/index.tsx @@ -449,6 +449,7 @@ const Home = () => { saveImageAs, scale, noImageProcessing, + compression, }); logit("🏁 DOUBLE_UPSCAYL"); } else if (batchMode) { @@ -462,6 +463,7 @@ const Home = () => { saveImageAs, scale, noImageProcessing, + compression, }); logit("🏁 FOLDER_UPSCAYL"); } else { @@ -475,6 +477,7 @@ const Home = () => { scale, overwrite, noImageProcessing, + compression, }); logit("🏁 UPSCAYL"); }