Skip to content

Commit

Permalink
Changed Image.ANTIALIAS to Image.LANCZOS (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
quintindunn authored Jul 30, 2023
1 parent 9cf941e commit 2595189
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rustplus/api/rust_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ async def get_map(
if not self.use_test_server:
image = image.crop((500, 500, game_map.height - 500, game_map.width - 500))

game_map = image.resize((map_size, map_size), Image.ANTIALIAS).convert("RGBA")
game_map = image.resize((map_size, map_size), Image.LANCZOS).convert("RGBA")

if add_grid:
grid = (
Expand All @@ -209,7 +209,7 @@ async def get_map(
f"https://files.rustmaps.com/grids/{map_size}.png", stream=True
).raw
)
.resize((map_size, map_size), Image.ANTIALIAS)
.resize((map_size, map_size), Image.LANCZOS)
.convert("RGBA")
)

Expand Down Expand Up @@ -277,7 +277,7 @@ async def get_map(
vending_machine,
)

return game_map.resize((2000, 2000), Image.ANTIALIAS)
return game_map.resize((2000, 2000), Image.LANCZOS)

async def get_entity_info(self, eid: int = None) -> RustEntityInfo:
await self._handle_ratelimit()
Expand Down

0 comments on commit 2595189

Please sign in to comment.