Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

image resolution extracting python

from PIL import Image, ExifTags
img = Image.open("/path/to/file.jpg")
exif = { ExifTags.TAGS[k]: v for k, v in img._getexif().items() if k in ExifTags.TAGS }
Comment

PREVIOUS NEXT
Code Example
Python :: python append to tuple list 
Python :: python generator function 
Python :: python dictionary delete based on value 
Python :: set method in python 
Python :: save a preprocess text 
Python :: mountain array leetcode 
Python :: how to iterate a list in reverse order in python with index 
Python :: print in pytest python 
Python :: .defaultdict 
Python :: 12 month movinf average in python for dataframe 
Python :: matplotlib colormap transparent white to black 
Python :: sort dictionary by key python 
Python :: Selenium get response body python 
Python :: geopandas change column name 
Python :: pandas convert column to title case 
Python :: tkinter textboxe position 
Python :: column of lists pandas 
Python :: authentication serializer drf 
Python :: support vector machine example 
Python :: how to define number in python 
Python :: open multiple urls 
Python :: tkinter video 
Python :: pydrive download by url 
Python :: python types of loops 
Python :: eval in python 
Python :: pip install 
Python :: python any in string 
Python :: np.random.choice 
Python :: do while python 
Python :: what does enumerate do in python 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =