mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Write review thumbs as webp and reduce size
This commit is contained in:
parent
51d3a78a7a
commit
8628bd9aa5
@ -104,7 +104,7 @@ class PendingReviewSegment:
|
||||
path = os.path.join(CLIPS_DIR, f"thumb-{self.camera}-{self.id}.jpg")
|
||||
|
||||
if self.frame is not None:
|
||||
cv2.imwrite(path, self.frame)
|
||||
cv2.imwrite(path, self.frame, [int(cv2.IMWRITE_WEBP_QUALITY), 60])
|
||||
|
||||
return {
|
||||
ReviewSegment.id: self.id,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user