diff --git a/tiffslide/tiffslide.py b/tiffslide/tiffslide.py index 6288f42..9127c83 100644 --- a/tiffslide/tiffslide.py +++ b/tiffslide/tiffslide.py @@ -868,7 +868,7 @@ def get_first_attribute_with_name( float(element.strip('"')) * 1000 for element in pixel_spacing_attribute.split(" ") ] - mpp_x, mpp_y = pixel_spacings[0], pixel_spacings[1] + mpp_y, mpp_x = pixel_spacings[0], pixel_spacings[1] md[PROPERTY_NAME_MPP_X] = mpp_x md[PROPERTY_NAME_MPP_Y] = mpp_y return md