No public description

MG_DOCKER_CODES_PIPER_ORIGIN_REV_ID: 955252640
This commit is contained in:
Oleh Prypin
2026-07-28 07:46:15 -07:00
committed by Copybara-Service
parent 8f3e6668e1
commit 9ea1cf3b86
2 changed files with 2 additions and 2 deletions
@@ -233,7 +233,7 @@ def download_image(url: str) -> str:
base64 encoded image.
"""
response = requests.get(url)
return Image.open(io.BytesIO(response.content)) # pytype: disable=bad-return-type # pillow-102-upgrade
return Image.open(io.BytesIO(response.content))
def resize_image(image: Any, new_width: int = 1000) -> Any:
@@ -233,7 +233,7 @@ def download_image(url: str) -> str:
base64 encoded image.
"""
response = requests.get(url)
return Image.open(io.BytesIO(response.content)) # pytype: disable=bad-return-type # pillow-102-upgrade
return Image.open(io.BytesIO(response.content))
def resize_image(image: Any, new_width: int = 1000) -> Any: