mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 09:04:28 +03:00
cropped true during creating new face
This commit is contained in:
parent
d65869e2ab
commit
ffd2adcf6c
@ -143,6 +143,7 @@ export default function FaceLibrary() {
|
||||
|
||||
const formData = new FormData();
|
||||
formData.append('file', blob, 'placeholder.webp');
|
||||
formData.append('cropped', 'true');
|
||||
|
||||
const resp = await axios.post(`/faces/${newFaceName}`, formData, {
|
||||
headers: {
|
||||
@ -189,6 +190,7 @@ export default function FaceLibrary() {
|
||||
|
||||
const formData = new FormData();
|
||||
formData.append('file', blob, 'placeholder.webp');
|
||||
formData.append('cropped', 'true');
|
||||
await axios.post(`/faces/${renameData.newName}`, formData);
|
||||
|
||||
const oldFaceImages = faceData[renameData.oldName] || [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user