From 096726fcebf7a60085c92de8e626bce77a1612a1 Mon Sep 17 00:00:00 2001 From: Nayam Amarshe <25067102+NayamAmarshe@users.noreply.github.com> Date: Sat, 24 Dec 2022 12:47:54 +0530 Subject: [PATCH] Addded image dimensions --- renderer/components/LeftPaneImageSteps.tsx | 22 +++++++++++++++++- renderer/pages/index.tsx | 26 +++++++++++++++++++--- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/renderer/components/LeftPaneImageSteps.tsx b/renderer/components/LeftPaneImageSteps.tsx index 1fd3a5a..a5332ea 100644 --- a/renderer/components/LeftPaneImageSteps.tsx +++ b/renderer/components/LeftPaneImageSteps.tsx @@ -24,6 +24,11 @@ interface IProps { setSaveImageAs: (arg: string) => void; gpuId: string; setGpuId: (arg: string) => void; + leftImageRef: any; + dimensions: { + width: number | null; + height: number | null; + }; } function LeftPaneImageSteps({ @@ -47,6 +52,7 @@ function LeftPaneImageSteps({ setGpuId, saveImageAs, setSaveImageAs, + dimensions, }: IProps) { useEffect(() => { themeChange(false); @@ -130,6 +136,8 @@ function LeftPaneImageSteps({ { label: "winter", value: "winter" }, ]; + useEffect(() => {}, [imagePath]); + return (
{/* BATCH OPTION */} @@ -214,6 +222,18 @@ function LeftPaneImageSteps({ {/* STEP 4 */}

Step 4

+ {dimensions.width && dimensions.height && ( +

+ Upscale from{" "} + + {dimensions.width}x{dimensions.height} + {" "} + to{" "} + + {dimensions.width * 4}x{dimensions.height * 4} + +

+ )}