valetudo-map-parser 0.1.9b19__tar.gz → 0.1.9b21__tar.gz
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.
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/PKG-INFO +1 -1
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/config/utils.py +2 -5
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/hypfer_handler.py +1 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/rand25_handler.py +1 -1
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/pyproject.toml +1 -1
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/LICENSE +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/NOTICE.txt +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/README.md +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/__init__.py +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/config/__init__.py +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/config/auto_crop.py +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/config/colors.py +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/config/drawable.py +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/config/rand25_parser.py +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/config/shared.py +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/config/types.py +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/hypfer_draw.py +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/map_data.py +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/py.typed +0 -0
- {valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/reimg_draw.py +0 -0
@@ -500,12 +500,9 @@ async def async_resize_image(params: ResizeParams):
|
|
500
500
|
)
|
501
501
|
|
502
502
|
if params.crop_size is not None:
|
503
|
+
offset = OffsetParams(wsf, hsf, new_width, new_height, params.is_rand)
|
503
504
|
params.crop_size[0], params.crop_size[1] = await params.offset_func(
|
504
|
-
|
505
|
-
hsf=hsf,
|
506
|
-
width=new_width,
|
507
|
-
height=new_height,
|
508
|
-
rand256=params.is_rand,
|
505
|
+
offset
|
509
506
|
)
|
510
507
|
|
511
508
|
return ImageOps.pad(params.pil_img, (new_width, new_height))
|
@@ -254,6 +254,7 @@ class HypferMapImageHandler(BaseHandler):
|
|
254
254
|
aspect_ratio=self.shared.image_aspect_ratio,
|
255
255
|
crop_size=self.crop_img_size,
|
256
256
|
offset_func=self.async_map_coordinates_offset,
|
257
|
+
is_rand=False,
|
257
258
|
)
|
258
259
|
resized_image = await self.async_resize_images(resize_params)
|
259
260
|
return resized_image
|
@@ -264,7 +264,7 @@ class ReImageHandler(BaseHandler):
|
|
264
264
|
aspect_ratio=self.shared.image_aspect_ratio,
|
265
265
|
crop_size=self.crop_img_size,
|
266
266
|
offset_func=self.async_map_coordinates_offset,
|
267
|
-
|
267
|
+
is_rand=True,
|
268
268
|
)
|
269
269
|
pil_img = await self.async_resize_images(resize_params)
|
270
270
|
_LOGGER.debug("%s: Frame Completed.", self.file_name)
|
File without changes
|
File without changes
|
File without changes
|
{valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/hypfer_draw.py
RENAMED
File without changes
|
{valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/map_data.py
RENAMED
File without changes
|
{valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/py.typed
RENAMED
File without changes
|
{valetudo_map_parser-0.1.9b19 → valetudo_map_parser-0.1.9b21}/SCR/valetudo_map_parser/reimg_draw.py
RENAMED
File without changes
|