Export Vector Art to SVG in LibreOffice Draw
LibreOffice Draw provides a lightweight, free solution for creating and exporting clean vector line art directly into the Scalable Vector Graphics (SVG) format for web publishing. This guide explains how to prepare your artwork, configure the export settings, and produce optimized SVG files that render crisply across all screen resolutions and modern web browsers.
Step 1: Prepare Your Line Art
Before exporting, ensure your vector elements are properly organized:
- Open your project in LibreOffice Draw.
- Select all the lines, paths, and shapes that make up your artwork.
- Group the elements by pressing
Ctrl + Shift + G(orCmd + Option + Gon macOS), or right-click and select Group > Group. This ensures the artwork is treated as a single compound object. - If you only want to export a specific illustration from a page with multiple assets, click on the grouped object to select it.
Step 2: Export to SVG
To export the artwork to SVG format:
- Go to the top menu and select File > Export… (do not choose Export as PDF).
- In the export dialog box, navigate to the folder where you want to save the file.
- Enter a file name for your graphic.
- Open the Save as type (or Filter) drop-down menu and select SVG - Scalable Vector Graphics (.svg).
- If you only want to export the selected artwork rather than the entire canvas, check the Selection box.
- Click Save (or Export).
Step 3: Web Optimization Best Practices
When publishing LibreOffice Draw SVGs to the web:
- Text Handling: If your line art contains text elements, convert them to curves (Shape > Convert > To Curve) before exporting if you want to preserve exact typography across devices without relying on external web fonts.
- Canvas Boundaries: By checking the Selection option during export, Draw automatically sets the SVG bounding box (viewBox) to the boundaries of your artwork, eliminating unwanted whitespace.
- Minification: For production environments, you can run the generated SVG through an optimization tool like SVGO to strip out metadata added by LibreOffice Draw and reduce the final file size.