Files
SnapOtter/apps/api
Siddharth Kumar Sah 2f0f0930c4 feat(svg-to-raster): add batch processing endpoint with SVG-specific sanitization
The generic batch route validates image buffers by magic bytes, which
fails for SVG input. This adds a dedicated /batch endpoint that sanitizes
each SVG individually before conversion, using p-queue for concurrency
and streaming the results as a ZIP with X-File-Results header.

Also extracts shared conversion logic into a reusable convertSvg helper
to avoid duplication between single-file and batch endpoints.
2026-04-13 12:40:23 +08:00
..
2026-04-10 14:13:37 +00:00