0

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
Christoph Rackwitz
  • 5,130
  • 3
  • 17
  • 27
Gulzar
  • 17,272
  • 18
  • 86
  • 144

0 Answers0