valetudo-map-parser 0.1.10rc4__py3-none-any.whl → 0.1.10rc5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,10 +186,16 @@ class BaseHandler:
186
186
 
187
187
  def prepare_resize_params(self, pil_img: PilPNG, rand: bool=False) -> ResizeParams:
188
188
  """Prepare resize parameters for image resizing."""
189
+ if self.shared.image_rotate in [0, 180]:
190
+ width, height = pil_img.size
191
+ else:
192
+ height, width = pil_img.size
193
+ LOGGER.debug("Shared PIL image size: %s x %s", self.shared.image_ref_width,
194
+ self.shared.image_ref_height)
189
195
  return ResizeParams(
190
196
  pil_img=pil_img,
191
- width=self.shared.image_ref_width, # pil_img.width,
192
- height=self.shared.image_ref_height, # pil_img.height,
197
+ width=width,
198
+ height=height,
193
199
  aspect_ratio=self.shared.image_aspect_ratio,
194
200
  crop_size=self.crop_img_size,
195
201
  offset_func=self.async_map_coordinates_offset,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: valetudo-map-parser
3
- Version: 0.1.10rc4
3
+ Version: 0.1.10rc5
4
4
  Summary: A Python library to parse Valetudo map data returning a PIL Image object.
5
5
  License: Apache-2.0
6
6
  License-File: LICENSE
@@ -20,7 +20,7 @@ valetudo_map_parser/config/shared.py,sha256=lvO3gz7aIVNCJ_K27S2Eh2yZcc5vdHI3WNG1
20
20
  valetudo_map_parser/config/status_text/status_text.py,sha256=PaynYW11vXH_vhDxhZrR9j-xeDrCxbB6YQQtN-kcaxQ,4052
21
21
  valetudo_map_parser/config/status_text/translations.py,sha256=mmPbJkl_2A59w49wnesQf3ocXqwZxBsrqNX-yt5FSCQ,9132
22
22
  valetudo_map_parser/config/types.py,sha256=WfmTy8gPFU45ILLgqY20xeblHHmoWzeyVlPTD-N_cdo,17395
23
- valetudo_map_parser/config/utils.py,sha256=c4IYC8K1vLE7ygpn2QrWW1IwQCnbanOds7HxzXGVYlI,36546
23
+ valetudo_map_parser/config/utils.py,sha256=PrXrtRqcN0zhANRZz1Djr8F1L0qmo5p1EBfyfbPh7-E,36745
24
24
  valetudo_map_parser/hypfer_draw.py,sha256=4zajujSOvtpRI_GMlmlioM3mDo19MvuOP861LhZmVlw,22495
25
25
  valetudo_map_parser/hypfer_handler.py,sha256=bGqeOyrBp8swJAXnMlIqlpYaS4yf98F_qwoKe1ksu4Y,20607
26
26
  valetudo_map_parser/hypfer_rooms_handler.py,sha256=NkpOA6Gdq-2D3lLAxvtNuuWMvPXHxeMY2TO5RZLSHlU,22652
@@ -29,8 +29,8 @@ valetudo_map_parser/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
29
29
  valetudo_map_parser/rand256_handler.py,sha256=tWTxWef-FTIs4XaEy7W-m88ABQYC8xPZUZFrBBCE2Rk,21603
30
30
  valetudo_map_parser/reimg_draw.py,sha256=a93UPwcVl5y9mXMY5DsNWD4_pXzm1QhC_n_WOokhEAE,12534
31
31
  valetudo_map_parser/rooms_handler.py,sha256=tE8BrXcdL0SeFAYsdFvjR3NVDfDi2RPKnXw9jD1e5k8,17494
32
- valetudo_map_parser-0.1.10rc4.dist-info/METADATA,sha256=jo-faaNAehRXD708U1SjRa9GYuSewiy_uOYc8WcylKE,3404
33
- valetudo_map_parser-0.1.10rc4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
34
- valetudo_map_parser-0.1.10rc4.dist-info/licenses/LICENSE,sha256=Lh-qBbuRV0-jiCIBhfV7NgdwFxQFOXH3BKOzK865hRs,10480
35
- valetudo_map_parser-0.1.10rc4.dist-info/licenses/NOTICE.txt,sha256=5lTOuWiU9aiEnJ2go8sc7lTJ7ntMBx0g0GFnNrswCY4,2533
36
- valetudo_map_parser-0.1.10rc4.dist-info/RECORD,,
32
+ valetudo_map_parser-0.1.10rc5.dist-info/METADATA,sha256=hyUHXw787tVf6B-3pRSwtZsESy-LjaQFqmOMxe4CU0k,3404
33
+ valetudo_map_parser-0.1.10rc5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
34
+ valetudo_map_parser-0.1.10rc5.dist-info/licenses/LICENSE,sha256=Lh-qBbuRV0-jiCIBhfV7NgdwFxQFOXH3BKOzK865hRs,10480
35
+ valetudo_map_parser-0.1.10rc5.dist-info/licenses/NOTICE.txt,sha256=5lTOuWiU9aiEnJ2go8sc7lTJ7ntMBx0g0GFnNrswCY4,2533
36
+ valetudo_map_parser-0.1.10rc5.dist-info/RECORD,,