Show viewer resolution as WxH instead of HxW (#2948)

This commit is contained in:
Brent Yi authored and GitHub committed 2024-02-23 18:21:02 +00:00
1 parent 29ddd2ca3a
commit 4dcbfc55fb
1 file changed
+1 -1
+1 -1
View File
@@ -306,7 +306,7 @@ class RenderStateMachine(threading.Thread):
jpeg_quality=jpg_quality,
depth=depth,
)
res = f"{selected_output.shape[0]}x{selected_output.shape[1]}px"
res = f"{selected_output.shape[1]}x{selected_output.shape[0]}px"
self.viewer.stats_markdown.content = self.viewer.make_stats_markdown(None, res)
def _calculate_image_res(self, aspect_ratio: float) -> Tuple[int, int]: