Output Formats
Covecto supports three output formats.
SVG (Default)
bash
covecto input.png -o output.svgThe native vector format. Best for web use, editing, and further processing.
PDF
bash
covecto input.png --format pdf -o output.pdfEmbeds the SVG inside a PDF. Useful for print or document inclusion.
EPS
bash
covecto input.png --format eps -o output.epsEncapsulated PostScript. Useful for legacy workflows, LaTeX, and print.
API Format Selection
bash
curl -F "file=@photo.jpg" -F "format=pdf" http://localhost:3000/v1/vectorize --output photo.pdfFor SVG format, the API returns JSON containing the SVG string. For PDF/EPS, it returns raw binary with the appropriate Content-Type header.
Streaming
When writing SVG to a file, Covecto uses streaming I/O — writing directly to disk instead of building the entire SVG in memory. This significantly reduces peak memory usage for large images.