From 5c3925ab50f5d11ed78f32715078830685fe727c Mon Sep 17 00:00:00 2001 From: Alex Yao <33379584+alexyao2015@users.noreply.github.com> Date: Tue, 19 Mar 2024 07:54:25 -0400 Subject: [PATCH] Add snapshot-clean.png API endpoint (#10510) * Add snapshot-clean.png API endpoint * fix lint * enable on inprogress event --- docs/docs/integrations/api.md | 9 +++++ frigate/api/media.py | 75 +++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/docs/docs/integrations/api.md b/docs/docs/integrations/api.md index 90de38832..c6a832560 100644 --- a/docs/docs/integrations/api.md +++ b/docs/docs/integrations/api.md @@ -290,6 +290,14 @@ Returns a thumbnail for the event id optimized for notifications. Works while th Returns the clip for the event id. Works after the event has ended. +### `GET /api/events//snapshot-clean.png` + +Returns the clean snapshot image for the event id. Only works if `snapshots` and `clean_copy` are enabled in the config. + +| param | Type | Description | +| ---------- | ---- | ------------------ | +| `download` | bool | Download the image | + ### `GET /api/events//snapshot.jpg` Returns the snapshot image for the event id. Works while the event is in progress and after completion. @@ -303,6 +311,7 @@ Accepts the following query string parameters, but they are only applied when an | `timestamp` | int | Print the timestamp in the upper left (0 or 1) | | `crop` | int | Crop the snapshot to the (0 or 1) | | `quality` | int | Jpeg encoding quality (0-100). Defaults to 70. | +| `download` | bool | Download the image | ### `POST /api/events//