mirror of
https://github.com/Xevion/simple-viewer.git
synced 2025-12-06 07:16:25 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user