Made a Bank Management app Using Tkinter. Thank you Sir for 5 hours course .Really Helpful❤
I always wondered how to do this - thanks for covering this :D
Can you please make a video on how to add border in image and resize it like when u insert image in ms word and the one using the app can resize it from dragging its borders, it would be superb if u teach me that!
this is most timely, i have a couple images in my program that i have been battling with to get the right size image, perfect
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My TH-cam Channel:
bit.ly/2UFLKgj bit.ly/2IGzvOR
▶️ See More At: ✅ Join My Facebook Group:
Codemy.com bit.ly/2GFmOBz
▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
Hit that like button Python Fans! Great tutorial. Feed the Algorithm!
bro i was looking your course on fCC and this was the only thing missing thank you very much for doing this follow up.
@@Codemycom I'm struggling with a proyect so I'll probably be checking them up shortly haha
many thanks!!
for some, if you get IMAGE class don't have type open error :(
use this method,
import PIL.ImageTk
import PIL.Image
#open image
logo1=PIL.Image.open("pic1.png")
#resize
resized = logo1.resize((250,160),PIL.Image.ANTIALIAS)
new_pic = PIL.ImageTk.PhotoImage(resized)
logo_label = tk.Label(root,image = new_pic)
logo_label.grid(row=0,column=0)
you can simplify this to one line: new_pic = ImageTK.PhotoImage(Image.open("images/aspen.png").resize((300, 225), Image.ANTIALIAS)) you can do this if you want less lines of code for the resize
although its "ImageTk" and not "ImageTK", thanks man! i knew it had to be a shorter way to do this 😉😉
can u do one for video resizing? I wanna play videos inside a frame but the video sizes are inconsistent. thank you
Can you please make a video on how to add border in image and resize it like when u insert image in ms word and the one using the app can resize it from dragging its borders
Thanks for the great video, been trying to do this without using modules and just using Tk base code for ages, Should I be more welcoming to using modules like Pillow with python? or can you do this without Pillow?
Sir please explain how to zoom in and zoom out browsed png image using tkinter
cool video. is there any way of resizing the image with the mouse (kind of like resizing images in google docs)?
I have a question, I know how to put an image in a window, but when I click to change the window, the image does not open in another tkinter window
Great tutorial!
What if I want to have multiple images in the screen? Say 3 images in each row (3 rows), total=9 images.
Please help me.
TIA
I made an image editor with PIL with some edit options and Tkinter and my error gets in where to pack it as an .exe
Hell it compiles when I run the file it's shows error. Kaboom
Would it work with gif too??
Can u sir help how to move image rotate in tkinter python
I get a TclError "..." doesn't exist following what you did step by step and my directory is also correct. Can you help me with the problem please?
Can someone help? I keep getting "AttributeError: '_io.TextIOWrapper' object has no attribute 'resize'" error.
i had two problems i needed to solve
Before:
my_img = ImageTk.PhotoImage(Image.open("A1f.png"))
image_label = Label(image=my_img, height=150, width=150)
After:
my_img = Image.Open('A1f.png')
image_label = Label(image=new_pic, height=150, width=150)
Hope this helps
do you know why I'm getting "AttributeError: type object 'Image' has no attribute 'open'"
PLEASE, HELP ME. How can I save image after resizing? Please someone help me. :)
plz help it is showing this error in my program
self.tk.call(
_tkinter.TclError: image "" doesn't exist
Im trying this way
But with any size I run it shows a white window there is no pictures
Or maybe the size is too high or ....?
Hi, i have the same problem, i get the path of the images but only a white box is displayed, could you solve it?
Yeah but if we try to see a picture in that
We have to type a mistake text in the end and that time we can see our called pictures
@@Anish_88 then how can I solve that?, in this moment is very important for me, I have the path of some image, there is when fail and I have only the label with it background, but I need the image that im calling with the path :/, really need help
First check your code.. if exactly same you should try use global my_image... it also happen to me but after i apply it.. its works!!!
example my code:
def open():
global my_image #Global variables can be used by everyone
root.filename = filedialog.askopenfilename(initialdir=os.getcwd(), title="Select Image File", filetypes=(("JPG File","*.jpg"),("PNG file","*.png"),("All Files", "*.*")))
my_image = Image.open(root.filename)
resized = my_image.resize((200, 200), Image.ANTIALIAS) #resize and get quality image
my_image = ImageTk.PhotoImage(resized)
my_label = Label(imageframe, image=my_image).pack()
Getting an AttributeError: 'PhotoImage' object has no attribute 'resize'
why am i getting this error: module 'PIL.Image' has no attribute 'ANTIALIAS'
i know this is late but
newer versions of PIL have removed ANTIALIAS
instead use Image.LANCZOS or Image. Resampling.LANCZOS
hope this helps
Please make tutorial videos on kivy because we can create android, iOS app using kivy but using tkinter we can't 😔
🙏🙏🙏🙏
img1 = Image.Open("1.- Armani.png")
AttributeError: type object 'Image' has no attribute 'Open'
I don't know why but this resize is not working for me. it says that PhotoImage has no attribute resize.
Check your code vs the video to see what you did differently from the video. You likely missed something or have a typo.
newer versions of PIL have removed ANTIALIAS
instead use Image.LANCZOS or Image. Resampling.LANCZOS
hope this helps
please sir show me changing image size with scale .........please please please
Doesn't this video show you how to resize any way you want? To do scale just do the math.
How in the world does one know that there's a thing called Pillow without ever watching this video. :-)
onepunch
I needed this as I'm making an app for myself that converts images to any commonly used image formats that I downloaded from browsers.
The problem was when I wanted to show a preview of the image selected for conversion. This video helped me a lot!
great, can i see a repo for that please?