-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
from PIL import Image
import sysdef operate_image(target_image: str) -> Image:
try:
image = Image.open(target_image)
width, height = image.size
return image.resize(
size=(width * 2, height * 2),
resample=Image.Resampling.LANCZOS
)
except Exception as e:
raise RuntimeError(f"Failed to chug on this mf chode! {e}")if __name__ == "__main__":
werk = operate_image("Batman-slapping-Robin-Meme-Blank.png")
werk.save("Batman-slapping-Robin-Meme-Blank_resized.png")Metadata
Metadata
Assignees
Labels
No labels