Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions nodes/nodes_aspect_ratio.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ def INPUT_TYPES(s):
"Billboard - 970x250",
"Portrait - 300x1050",
"Banner - 468x60",
"Leaderboard - 728x90"]
"Leaderboard - 728x90",
"Ko-Fi - 1200x400",
"Redbubble - 2400x600"]

return {
"required": {
Expand Down Expand Up @@ -329,8 +331,12 @@ def Aspect_Ratio(self, width, height, aspect_ratio, swap_dimensions, upscale_fac
elif aspect_ratio == "Banner - 468x60":
width, height = 168, 60
elif aspect_ratio == "Leaderboard - 728x90":
width, height = 728, 90

width, height = 728, 90
elif aspect_ratio == "Ko-Fi - 1200x400":
width, height = 1200, 400
elif aspect_ratio == "Redbubble - 2400x600":
width, height = 2400, 600

if swap_dimensions == "On":
width, height = height, width

Expand Down