Skip to content

Commit

Permalink
Improve messaging about image size / upscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
benrugg committed Apr 14, 2023
1 parent 045be7e commit fc47608
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ui/ui_panels.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def draw(self, context):
else:
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)

layout.separator()

row = layout.row()
row.label(text="Set Image Size:")

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

if utils.get_active_backend().supports_upscaling() and props.do_upscale_automatically:
layout.separator()
box = layout.box()
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)

# else, show the ready / getting started message and disable and change image size buttons
else:
utils.label_multiline(layout, text="You're ready to start rendering!", width=width_guess, alignment="CENTER")
Expand Down

0 comments on commit fc47608

Please sign in to comment.