Skip to content

Commit

Permalink
Fix image scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Milk committed Sep 4, 2024
1 parent 1c57d9f commit 10e0b20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wsi_data/io/_open_wsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def open_wsi(
thumbnail_shape = thumbnail.shape
origin_shape = reader_obj.properties.shape
scale_x, scale_y = (
thumbnail_shape[0] / origin_shape[0],
thumbnail_shape[1] / origin_shape[1],
origin_shape[0] / thumbnail_shape[0],
origin_shape[1] / thumbnail_shape[1],
)

if thumbnail is not None:
Expand Down

0 comments on commit 10e0b20

Please sign in to comment.