From 32acafecee4cfb11b85eb7bf531cf0544a37a4d5 Mon Sep 17 00:00:00 2001 From: Tropfchen <6117944+Tropfchen@users.noreply.github.com> Date: Thu, 25 Apr 2024 21:21:34 +0200 Subject: [PATCH] fix ratios order; add 5:4 ratio; update README --- README.md | 2 +- nodes.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 286aa1c..e9b310b 100644 --- a/README.md +++ b/README.md @@ -34,4 +34,4 @@ Recommend node with flexible ratio choice #### yaResolution Selector -Basic version for users that prefer aspect ratio presets. New presets can be added by modifying nodes.py file, remember to always include values in format width:height +Basic version for users that prefer aspect ratio presets. New presets can be added by modifying ratios.txt file (if you don't have it, use the node at least once), remember to always include values in format width:height diff --git a/nodes.py b/nodes.py index ba234a8..5758e89 100644 --- a/nodes.py +++ b/nodes.py @@ -64,15 +64,17 @@ class YARS: with open(self.ratios_path, "w") as file: file.write( "1:1\n" + "landscape (5:4)\n" "landscape (4:3)\n" "landscape (3:2)\n" - "landscape (16:9)\n" "landscape (16:10)\n" + "landscape (16:9)\n" "landscape (21:9)\n" + "portrait (4:5)\n" "portrait (3:4)\n" "portrait (2:3)\n" - "portrait (9:16)\n" "portrait (9:10)\n" + "portrait (9:16)\n" "portrait (9:21)\n" )