Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python tkinter get image size

img = Image.open("path	oimage.jpg")
tkimage = ImageTk.PhotoImage(img)

h = tkimage.height()
w = tkimage.width()
print(h)
print(w)
Comment

PREVIOUS NEXT
Code Example
Python :: python how to add up all numbers in a list 
Python :: create empty numpy array without shape 
Python :: python get value from dictionary 
Python :: strp datetime 
Python :: json decode py 
Python :: fibonacci series list comphrehension in python 
Python :: how to print a column from csv file in python 
Python :: django prefetch_related vs select_related 
Python :: how to use argparse 
Python :: tkinter window size 
Python :: bot ping command 
Python :: charts in python 
Python :: adding roles discord py 
Python :: how to pass parameters in python script 
Python :: how to search in django 
Python :: find all subsequences of a list python 
Python :: python string remove accent 
Python :: tkinter entry focus 
Python :: convert csv file into python list 
Python :: convert 2d string array to float python 
Python :: print schema in pandas dataframe 
Python :: python 7zip extract 
Python :: timer 1hr 
Python :: python for/else 
Python :: create an empty numpy array and append 
Python :: list of dataframe to dataframe 
Python :: match statement 
Python :: python download file from url requests 
Python :: how to encrypt text in python 
Python :: python distilled 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =