Bug: /v1/digitize docstring says PNG/JPG only but CanvasArea UI accepts SVG+PNG+JPEG+BMP #11
Labels
No labels
blocked:needs-attention
blocked:needs-decision
bug
feature-request
in-progress
needs-decompose
quickfix
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/easystitch-service#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Contract drift between frontend and backend.
src/components/workspace/CanvasArea.tsx:276→accept="image/png,image/jpeg,image/svg+xml,image/bmp"app.py:181-184docstring → "Acceptsmultipart/form-datawith:image— binary PNG or JPG"If a user drops an SVG via the UI today, the backend either silently rasterizes or rejects with 422
invalid_image. The UI is overpromising.Suggested fix
Decide: either (a) extend
/v1/digitizeto accept SVG (the engine already has SVG path logic), or (b) update the UI accept list to match the backend. Update the docstring either way.Severity
LOW — confusing, not breaking.