Write review thumbs as webp and reduce size

This commit is contained in:
Nicolas Mowen 2024-03-09 07:01:38 -07:00
parent 51d3a78a7a
commit 8628bd9aa5

View File

@ -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,