From fad079fc491777607ecdcdf66dc59a053154f417 Mon Sep 17 00:00:00 2001 From: alexyao2015 <33379584+alexyao2015@users.noreply.github.com> Date: Sun, 17 Mar 2024 15:13:53 -0500 Subject: [PATCH] Add snapshot-clean.png API endpoint --- docs/docs/integrations/api.md | 9 +++++++ frigate/api/media.py | 48 +++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/docs/docs/integrations/api.md b/docs/docs/integrations/api.md index 90de38832..6078ccdf8 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 after an event has completed and 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//