use thumbnail resolutions preallocate img tag space before loading, fix directory header icons and text, delete prompt path linkback, resolution and size text, fix browse media borders/padding

This commit is contained in:
Xevion
2020-11-03 22:16:01 -06:00
parent 08f91089bc
commit eb071ed560
4 changed files with 98 additions and 16 deletions

View File

@@ -37,4 +37,4 @@ def get_resolution(path: str) -> Tuple[int, int]:
:return: A tuple containing two positive integers representing width and height
"""
file = cv2.VideoCapture(path)
return file.get(cv2.CAP_PROP_FRAME_HEIGHT), file.get(cv2.CAP_PROP_FRAME_WIDTH)
return file.get(cv2.CAP_PROP_FRAME_WIDTH), file.get(cv2.CAP_PROP_FRAME_HEIGHT)