strix

A simple web UI for motion
git clone https://www.brianlane.com/git/strix
Log | Files | Refs | LICENSE

commit 4ce6f7eb4128584aecc9e91aa7baf7fd7dcc01c3
parent a2bd7827b6bd3496c87ac77ac2c64ebd6b92714f
Author: Brian C. Lane <bcl@brianlane.com>
Date:   Sat, 25 May 2024 08:02:48 -0700

events: Fix fallback thumbnail path

Fixes #29

An upgrade to python3.9 broke the exiftool used to extract the metadata
from the images, resulting in the thumbnail creation to fail and for it
to try to fall back to the old 25% position image. But it wasn't
including the path with the image name.

Diffstat:
Msrc/strix/events.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/strix/events.py b/src/strix/events.py @@ -266,7 +266,8 @@ def event_details(log, event_path): if os.path.exists(event_path+"/thumbnail.jpg"): thumbnail = url+"/thumbnail.jpg" elif images: - thumbnail = images[len(images)//4] + # No thumbnail, use the 25% position image + thumbnail = url+"/"+images[len(images)//4] else: thumbnail = "images/missing.jpg"