mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-03 20:17:42 +03:00
fix android formatted thumbnail
This commit is contained in:
parent
b8f6a5d6b6
commit
e3d0552447
@ -909,7 +909,7 @@ def event_thumbnail(
|
||||
elif extension == "webp":
|
||||
quality_params = [int(cv2.IMWRITE_WEBP_QUALITY), 60]
|
||||
|
||||
_, img = cv2.imencode(f".{img}", thumbnail, quality_params)
|
||||
_, img = cv2.imencode(f".{extension}", thumbnail, quality_params)
|
||||
thumbnail_bytes = img.tobytes()
|
||||
|
||||
return Response(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user