Skip to content

Commit

Permalink
cropped true during creating new face
Browse files Browse the repository at this point in the history
  • Loading branch information
weitheng01 committed Jan 28, 2025
1 parent be3d9c8 commit 064e814
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/pages/FaceLibrary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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] || [];
Expand Down

0 comments on commit 064e814

Please sign in to comment.