mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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.