Skip to content

Commit fc47608

Browse files
committed
Improve messaging about image size / upscaling
1 parent 045be7e commit fc47608

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ui/ui_panels.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def draw(self, context):
124124
else:
125125
utils.label_multiline(layout, text=f"Adjust Image Size: \nImage dimensions are too small. Please increase width and/or height. Total pixel area must be at least {round(utils.get_active_backend().min_image_size() / (1024*1024), 1)} megapixels.", icon="INFO", width=width_guess)
126126

127+
layout.separator()
128+
127129
row = layout.row()
128130
row.label(text="Set Image Size:")
129131

@@ -135,6 +137,11 @@ def draw(self, context):
135137
col = row.column()
136138
col.operator(operators.AIR_OT_show_other_dimension_options.bl_idname, text="Other")
137139

140+
if utils.get_active_backend().supports_upscaling() and props.do_upscale_automatically:
141+
layout.separator()
142+
box = layout.box()
143+
utils.label_multiline(box, text=f"Final image will be upscaled {round(props.upscale_factor)}x larger than these initial dimensions.", width=width_guess-20)
144+
138145
# else, show the ready / getting started message and disable and change image size buttons
139146
else:
140147
utils.label_multiline(layout, text="You're ready to start rendering!", width=width_guess, alignment="CENTER")

0 commit comments

Comments
 (0)