Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13981

The resize() function doesn't resize my image

$
0
0
imageopen = Image.open("logo.png")imageopen = imageopen.resize((1000,1000), Image.LANCZOS)frame = ctk.CTkFrame(master=root)frame.pack(pady=20, padx=60, fill="both", expand="True")image = ctk.CTkImage(imageopen)label = ctk.CTkLabel(master=frame, image=image, text="", height=200)label.pack(pady=12, padx=10)

So while I'm working on a UI using customtkinter, I added a label which contains the image "logo.png". But when I run the code, the image is extremely small. So I tried to resize it with Pillow's resize() function but is does not work. This is my code, but the image is still very small.

I have tried change "LANCZOS" in to "ANTIALIAS" but it does not work


Viewing all articles
Browse latest Browse all 13981

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>