Skip to content

Commit

Permalink
added 4k output to downsampled image
Browse files Browse the repository at this point in the history
  • Loading branch information
benjym committed Aug 27, 2024
1 parent cac9564 commit 8c8ce6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/python/get_downscaled_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
if response.status_code == 200:
image = Image.open(io.BytesIO(response.content))
image.save('roi_image.png')

upscaled_image = image.resize((3840, 2160), Image.Resampling.NEAREST)
upscaled_image.save('roi_image_4k.png')

print("Image saved as 'roi_image.png'.")
else:
print(f"Failed to fetch image (status code: {response.status_code}).")

0 comments on commit 8c8ce6f

Please sign in to comment.