I want to read only metadata of an image, without reading the data. This should be much faster.
I found this question, with this answer, but not sure how to use it.
Also, I prefer a cv2 solution if one exists.
Not looking for:
import cv2
im = cv2.imread(mypath)
height, width, channels = im.shape