Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RedBubble and Ko-Fi to the Aspect Ratio - Banners node #176

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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