π Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.
TypeScript aielectronesrgangigapixelgigapixel-imagesimageimage-upscalingtopazupscaleupscalerimageupscayl
Add target height
Nayam Amarshef240cca43353
diff --git a/renderer/components/upscayl-tab/config/LeftPaneImageSteps.tsx b/renderer/components/upscayl-tab/config/LeftPaneImageSteps.tsxindex 51d1f6a..d05aaea 100644--- a/renderer/components/upscayl-tab/config/LeftPaneImageSteps.tsx+++ b/renderer/components/upscayl-tab/config/LeftPaneImageSteps.tsx@@ -299,14 +299,27 @@ function LeftPaneImageSteps({className="input input-primary h-8 w-16 px-2 py-0 text-sm font-bold"defaultValue={getUpscaleResolution().width}value={targetWidth}- onChange={(e) => setTargetWidth(parseInt(e.target.value))}+ onChange={(e) => {+ if (parseInt(e.target.value) > 32768) {+ setTargetWidth(32768);+ } else if (e.target.value === "") {+ setTargetWidth(1);+ }+ setTargetWidth(parseInt(e.target.value));+ }}/>{" "}x{" "}<inputclassName="input input-primary h-8 w-16 px-2 py-0 text-sm font-bold"defaultValue={getUpscaleResolution().width}value={targetHeight}- onChange={(e) => setTargetHeight(parseInt(e.target.value))}+ onChange={(e) => {+ if (parseInt(e.target.value) > 32768) {+ setTargetHeight(32768);+ } else if (e.target.value === "") {+ setTargetHeight(1);+ } else setTargetHeight(parseInt(e.target.value));+ }}/></div>{/* <span className="font-bold">