mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
SVG files were rejected by the convert endpoint because validateImageBuffer only recognized raster magic bytes. This adds text-based SVG detection, sanitization in the tool factory, and proper Sharp density handling so SVG-to-raster conversion works through the standard convert route.
5 lines
195 B
XML
5 lines
195 B
XML
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
|
|
<rect width="100" height="100" fill="#4a90d9"/>
|
|
<circle cx="50" cy="50" r="30" fill="#ffffff"/>
|
|
</svg>
|