image_size icon indicating copy to clipboard operation
image_size copied to clipboard

Issue with phone captured images

Open lvaleriu opened this issue 4 years ago • 0 comments

For some images (mainly the ones taken with a phone) the library inverts height and width dimensions. For the attached image (which is a landscape image of a document)

  • the following code: get_image_size.get_image_metadata('test.jpg') returns
Image(path=Path('test.jpg'), type='JPEG', file_size=321819, width=747, height=1080)
  • whereas

cv2.imread('test.jpg')).shape returns (747, 1080, 3) # height, width, channels.

(We get the same value as opencv when using skimage imread).

test

lvaleriu avatar Aug 12 '20 12:08 lvaleriu