Python Forum
image.thumbnail(width, height) not working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
image.thumbnail(width, height) not working
#2
I cannot get ImageTk to work correctly on my system so I can't be 100% certain, but I think that your problem is in line 50. The width and height should be a tuple like this:

smallerimage = currimage.thumbnail((800, 480))
Note the double sets of parenthesis.
PCesarano likes this post
Reply


Messages In This Thread
RE: image.thumbnail(width, height) not working - by BashBedlam - Apr-08-2021, 01:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python code to set column width 1418 11 1,944 Jan-20-2024, 07:20 AM
Last Post: Pedroski55
  Fixed colum width for rowLabels i Matplotlib pandabay 0 522 Jun-10-2023, 03:40 PM
Last Post: pandabay
  width of Unicode character Skaperen 6 2,939 Sep-27-2021, 12:41 AM
Last Post: Skaperen
  Help me get this image converter code working? NeTgHoSt 0 2,199 Jul-14-2020, 10:36 PM
Last Post: NeTgHoSt
  Applying row height to all rows including and after row 7 curranjohn46 2 6,801 Oct-14-2019, 03:10 PM
Last Post: curranjohn46
  How can I get the width of a string in Python? aquerci 14 16,800 May-27-2019, 06:00 PM
Last Post: heiner55
  fixed width numbers Skaperen 15 9,118 May-27-2019, 09:42 AM
Last Post: Skaperen
  Better Tree Height Function Clunk_Head 2 2,256 Feb-24-2019, 09:15 PM
Last Post: Clunk_Head
  printing text tables with consistent width Skaperen 7 10,904 Jul-01-2018, 02:34 AM
Last Post: Skaperen
  How to measure an inclined beam width and height in image using python? zyb1003 1 3,372 Nov-07-2017, 05:02 AM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020