fix ratios order; add 5:4 ratio; update README

This commit is contained in:
Tropfchen
2024-04-25 21:21:34 +02:00
parent 76783a3060
commit 32acafecee
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -34,4 +34,4 @@ Recommend node with flexible ratio choice
#### yaResolution Selector #### 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
+4 -2
View File
@@ -64,15 +64,17 @@ class YARS:
with open(self.ratios_path, "w") as file: with open(self.ratios_path, "w") as file:
file.write( file.write(
"1:1\n" "1:1\n"
"landscape (5:4)\n"
"landscape (4:3)\n" "landscape (4:3)\n"
"landscape (3:2)\n" "landscape (3:2)\n"
"landscape (16:9)\n"
"landscape (16:10)\n" "landscape (16:10)\n"
"landscape (16:9)\n"
"landscape (21:9)\n" "landscape (21:9)\n"
"portrait (4:5)\n"
"portrait (3:4)\n" "portrait (3:4)\n"
"portrait (2:3)\n" "portrait (2:3)\n"
"portrait (9:16)\n"
"portrait (9:10)\n" "portrait (9:10)\n"
"portrait (9:16)\n"
"portrait (9:21)\n" "portrait (9:21)\n"
) )