We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08a8e10 commit dae8917Copy full SHA for dae8917
1 file changed
scripts/measure/prep_display_image.py
@@ -127,12 +127,12 @@ def display(
127
# rescale according to non-negative value
128
if image_res[0] < 0:
129
new_height = image_res[1]
130
- ratio = new_height / float(image_width)
+ ratio = new_height / float(image_height)
131
image_res = (int(ratio * image_width), new_height)
132
133
elif image_res[1] < 0:
134
new_width = image_res[0]
135
- ratio = new_width / float(image_height)
+ ratio = new_width / float(image_width)
136
image_res = (new_width, int(ratio * image_height))
137
138
# set image within screen
0 commit comments