ความคิดเห็น •

  • @bhoot1702
    @bhoot1702 2 ปีที่แล้ว +1

    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!

    • @daraakojede342
      @daraakojede342 ปีที่แล้ว

      great, can i see a repo for that please?

  • @kashishrana4800
    @kashishrana4800 3 ปีที่แล้ว +1

    Made a Bank Management app Using Tkinter. Thank you Sir for 5 hours course .Really Helpful❤

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      Awesome, good job!

  • @gloryness
    @gloryness 4 ปีที่แล้ว +10

    I always wondered how to do this - thanks for covering this :D

    • @Codemycom
      @Codemycom 4 ปีที่แล้ว +1

      sure thing!

    • @rushaan3039
      @rushaan3039 3 ปีที่แล้ว +1

      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!

  • @sovereignlivingsoul
    @sovereignlivingsoul 3 หลายเดือนก่อน

    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

    • @Codemycom
      @Codemycom 3 หลายเดือนก่อน

      Glad to hear it

  • @Codemycom
    @Codemycom 4 ปีที่แล้ว

    ▶️ 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

  • @eshaangupta4101
    @eshaangupta4101 3 ปีที่แล้ว

    Thanks a lot John, helped a lot!

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      You're welcome!

  • @RyanDanielG
    @RyanDanielG 2 ปีที่แล้ว +1

    Hit that like button Python Fans! Great tutorial. Feed the Algorithm!

  • @sheetalgupta1573
    @sheetalgupta1573 3 ปีที่แล้ว +1

    thank you so much sir, this has helped me a lot in my gui

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      Glad it helped!

  • @daltoncyr6145
    @daltoncyr6145 3 ปีที่แล้ว

    the king of teaching python

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      ha, thanks!

  • @liopo9000
    @liopo9000 3 ปีที่แล้ว +2

    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
      @Codemycom 3 ปีที่แล้ว

      Sure thing...there's about a hundred more tkinter videos on my channel too

    • @liopo9000
      @liopo9000 3 ปีที่แล้ว

      @@Codemycom I'm struggling with a proyect so I'll probably be checking them up shortly haha

  • @kalire9461
    @kalire9461 ปีที่แล้ว

    Thank You bro. That's so helped

    • @Codemycom
      @Codemycom ปีที่แล้ว

      Happy to hear it!

  • @retroemfoco
    @retroemfoco 2 ปีที่แล้ว

    Thanks a lot, you help me so much!

    • @Codemycom
      @Codemycom 2 ปีที่แล้ว +1

      Happy to hear it!

  • @rajivram9665
    @rajivram9665 3 ปีที่แล้ว

    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)

  • @jawherballoumi6766
    @jawherballoumi6766 2 ปีที่แล้ว

    you are soo good keep up and thank you

  • @sakhshamchhibber1565
    @sakhshamchhibber1565 3 ปีที่แล้ว

    Thanks sir
    Helped a lot in my school project

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      You're welcome!

  • @toplisttoday2284
    @toplisttoday2284 3 ปีที่แล้ว +1

    Fantastic!!!

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      Glad you liked it!

  • @SarahTime.mp4
    @SarahTime.mp4 3 ปีที่แล้ว

    The most satisfying feeling is when you finally get a code to work

  • @mohammedhoussemtoumi5545
    @mohammedhoussemtoumi5545 2 ปีที่แล้ว

    You're a hero

    • @Codemycom
      @Codemycom 2 ปีที่แล้ว

      Ha, thanks!

  • @jeffkirchoff14
    @jeffkirchoff14 2 ปีที่แล้ว

    Thx So Much For Solving my problem sir

    • @Codemycom
      @Codemycom 2 ปีที่แล้ว

      Happy to help!

  • @sidhumm
    @sidhumm 4 ปีที่แล้ว +1

    Thanks a lot.

    • @Codemycom
      @Codemycom 4 ปีที่แล้ว

      Sure thing :-)

  • @umeshdhoke5427
    @umeshdhoke5427 3 ปีที่แล้ว

    Thank you sir for this video 😊😊😊😊
    Your student from India 😊

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว +1

      Welcome

  • @luckeyduckey7858
    @luckeyduckey7858 2 ปีที่แล้ว +13

    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

    • @blankos1817
      @blankos1817 2 ปีที่แล้ว +2

      although its "ImageTk" and not "ImageTK", thanks man! i knew it had to be a shorter way to do this 😉😉

    • @bhoot1702
      @bhoot1702 2 ปีที่แล้ว

      I will try it thanks

    • @daraakojede342
      @daraakojede342 ปีที่แล้ว

      @@blankos1817 hehe

  • @chococandy8009
    @chococandy8009 3 ปีที่แล้ว

    Thank you so much sir :)

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      Most welcome

  • @munalatifi3757
    @munalatifi3757 3 ปีที่แล้ว

    can u do one for video resizing? I wanna play videos inside a frame but the video sizes are inconsistent. thank you

  • @ozbekchawindows4236
    @ozbekchawindows4236 4 ปีที่แล้ว +1

    You are so clever...

  • @rushaan3039
    @rushaan3039 3 ปีที่แล้ว +1

    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

  • @eshaangupta4101
    @eshaangupta4101 3 ปีที่แล้ว

    Keep making more videos!

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      That's the plan!

  • @jmguezz3789
    @jmguezz3789 2 ปีที่แล้ว

    Thank you sir..

    • @Codemycom
      @Codemycom 2 ปีที่แล้ว

      Very welcome!

  • @sebastianlandazurig8299
    @sebastianlandazurig8299 3 ปีที่แล้ว

    Thanks !!!

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      Welcome!

  • @GroockG
    @GroockG 3 ปีที่แล้ว +1

    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?

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว +1

      Yeah, you have to use Pillow.

  • @balajir1586
    @balajir1586 3 ปีที่แล้ว +3

    Sir please explain how to zoom in and zoom out browsed png image using tkinter

  • @martinwestin4539
    @martinwestin4539 3 ปีที่แล้ว +1

    cool video. is there any way of resizing the image with the mouse (kind of like resizing images in google docs)?

    • @emre6714
      @emre6714 6 หลายเดือนก่อน

      have you figured out?

  • @thiagoalvespinheiro8592
    @thiagoalvespinheiro8592 3 ปีที่แล้ว

    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

  • @KalyaniDesigns
    @KalyaniDesigns 3 ปีที่แล้ว

    oh thank u man

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      You're welcome!

  • @israelcarvalho2167
    @israelcarvalho2167 4 ปีที่แล้ว

    thanks!

    • @Codemycom
      @Codemycom 4 ปีที่แล้ว

      Welcome!

  • @bryanignacio2733
    @bryanignacio2733 2 ปีที่แล้ว

    thanks :)

    • @Codemycom
      @Codemycom 2 ปีที่แล้ว

      Sure thing!

  • @abrarmulla1196
    @abrarmulla1196 3 ปีที่แล้ว

    nice vid

  • @arpitagec9
    @arpitagec9 3 ปีที่แล้ว +1

    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

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      Just add them in the normal way. I have videos on images in the playlist.

  • @jutsuuchiha3858
    @jutsuuchiha3858 4 ปีที่แล้ว +1

    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

    • @Codemycom
      @Codemycom 4 ปีที่แล้ว

      Yeah exe's are a pain

  • @angadsahu4152
    @angadsahu4152 ปีที่แล้ว

    Would it work with gif too??

  • @rsn_cs_itkotdwar6098
    @rsn_cs_itkotdwar6098 11 หลายเดือนก่อน

    Can u sir help how to move image rotate in tkinter python

  • @estudosacademicos5237
    @estudosacademicos5237 3 ปีที่แล้ว

    Parabéns...

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      Thank you

  • @tomr9113
    @tomr9113 3 ปีที่แล้ว

    I would like to know what editor you are using in this video. Thanks

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      Sublime Text Editor and the Git bash git-scm.com terminal

    • @tomr9113
      @tomr9113 3 ปีที่แล้ว

      @@Codemycom Thank you

  • @Sana-en9bp
    @Sana-en9bp 3 ปีที่แล้ว

    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?

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      Use the same tools that I use.

  • @antonsurviyanto5896
    @antonsurviyanto5896 4 ปีที่แล้ว +1

    Tutorial how to insert text inside canvas Sir please, thank you

  • @TheGoldenPro
    @TheGoldenPro 3 ปีที่แล้ว +1

    Can someone help? I keep getting "AttributeError: '_io.TextIOWrapper' object has no attribute 'resize'" error.

    • @graysongarrett6739
      @graysongarrett6739 3 ปีที่แล้ว

      I'm getting the same error >.

    • @graysongarrett6739
      @graysongarrett6739 3 ปีที่แล้ว

      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

  • @BeerTrooper
    @BeerTrooper 3 ปีที่แล้ว

    do you know why I'm getting "AttributeError: type object 'Image' has no attribute 'open'"

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      probably a typo

  • @Electrologia
    @Electrologia 2 ปีที่แล้ว +1

    PLEASE, HELP ME. How can I save image after resizing? Please someone help me. :)

  • @mohakjain7939
    @mohakjain7939 3 ปีที่แล้ว

    plz help it is showing this error in my program
    self.tk.call(
    _tkinter.TclError: image "" doesn't exist

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      does the image exist?

  • @dukescompany7855
    @dukescompany7855 4 ปีที่แล้ว

    Muito bom

    • @Codemycom
      @Codemycom 4 ปีที่แล้ว +1

      thanks

  • @sivasurya4149
    @sivasurya4149 4 ปีที่แล้ว

    Cute pic ....,,,,

  • @codingstudio8865
    @codingstudio8865 3 ปีที่แล้ว +1

    Sir, how to get the actual size of the image

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว +2

      Try: image.width() and image.height()

  • @Anish_88
    @Anish_88 4 ปีที่แล้ว +1

    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 ....?

    • @Codemycom
      @Codemycom 4 ปีที่แล้ว

      check your code for typos...

    • @sergionieto2405
      @sergionieto2405 3 ปีที่แล้ว +1

      Hi, i have the same problem, i get the path of the images but only a white box is displayed, could you solve it?

    • @Anish_88
      @Anish_88 3 ปีที่แล้ว +1

      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

    • @sergionieto2405
      @sergionieto2405 3 ปีที่แล้ว

      @@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

    • @nuradibahaqilah4008
      @nuradibahaqilah4008 3 ปีที่แล้ว

      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()

  • @shubhanshusharma5372
    @shubhanshusharma5372 3 ปีที่แล้ว +1

    @Codemy pls help how to resize toplevel image

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว +1

      In the same way you resize any image.

    • @shubhanshusharma5372
      @shubhanshusharma5372 3 ปีที่แล้ว

      @@Codemycom but it cant resized

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      @@shubhanshusharma5372 yes it can

  • @nagendrasain9861
    @nagendrasain9861 3 ปีที่แล้ว +1

    Getting an AttributeError: 'PhotoImage' object has no attribute 'resize'

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      What did you do differently from the video?

  • @AbysmalCCfoxcxz
    @AbysmalCCfoxcxz 8 หลายเดือนก่อน

    why am i getting this error: module 'PIL.Image' has no attribute 'ANTIALIAS'

    • @yasinsaleem2520
      @yasinsaleem2520 หลายเดือนก่อน

      i know this is late but
      newer versions of PIL have removed ANTIALIAS
      instead use Image.LANCZOS or Image. Resampling.LANCZOS
      hope this helps

  • @sunirnaychatterjee8963
    @sunirnaychatterjee8963 4 ปีที่แล้ว +1

    Please make tutorial videos on kivy because we can create android, iOS app using kivy but using tkinter we can't 😔
    🙏🙏🙏🙏

    • @Codemycom
      @Codemycom 4 ปีที่แล้ว

      I'm planning on it

    • @marcosfonseca9478
      @marcosfonseca9478 4 ปีที่แล้ว

      I'm creating a app for Android with tkinter in Android

  • @vishalyewale4726
    @vishalyewale4726 3 ปีที่แล้ว

    img1 = Image.Open("1.- Armani.png")
    AttributeError: type object 'Image' has no attribute 'Open'

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      lowercase o in open

  • @sarithnadeeja5234
    @sarithnadeeja5234 2 ปีที่แล้ว

    💖💖💖💖💖💖💫🤟

  • @aayanomer6852
    @aayanomer6852 8 หลายเดือนก่อน

    I don't know why but this resize is not working for me. it says that PhotoImage has no attribute resize.

    • @Codemycom
      @Codemycom 8 หลายเดือนก่อน

      Check your code vs the video to see what you did differently from the video. You likely missed something or have a typo.

    • @yasinsaleem2520
      @yasinsaleem2520 หลายเดือนก่อน

      newer versions of PIL have removed ANTIALIAS
      instead use Image.LANCZOS or Image. Resampling.LANCZOS
      hope this helps

  • @favarobahamut6662
    @favarobahamut6662 3 ปีที่แล้ว

    Why my resize didnt pop up

    • @Codemycom
      @Codemycom 3 ปีที่แล้ว

      You have a typo in your code

  • @G_a_n_d_u
    @G_a_n_d_u 2 ปีที่แล้ว

    please sir show me changing image size with scale .........please please please

    • @Codemycom
      @Codemycom 2 ปีที่แล้ว +1

      Doesn't this video show you how to resize any way you want? To do scale just do the math.

  • @ssgoh4968
    @ssgoh4968 3 ปีที่แล้ว

    How in the world does one know that there's a thing called Pillow without ever watching this video. :-)

  • @robinstejeda6273
    @robinstejeda6273 2 ปีที่แล้ว

    It's very slow what hapen?

    • @Codemycom
      @Codemycom 2 ปีที่แล้ว

      What did you do differently than the video?

  • @shivam20095
    @shivam20095 2 ปีที่แล้ว

    Nice Tutorial,
    But it is not working on my side

    • @Codemycom
      @Codemycom 2 ปีที่แล้ว

      Did you pip install Pillow?

  • @mujassimjamal24
    @mujassimjamal24 4 ปีที่แล้ว +1

    First

  • @unrevealed_hindi
    @unrevealed_hindi 2 หลายเดือนก่อน

    onepunch

  • @ashyvlogs1132
    @ashyvlogs1132 3 ปีที่แล้ว

    Walter?