About this guide: This is an independent community resource for Dia users. We are not affiliated with the GNOME project or the Dia developers. Dia is free, open-source software released under the GNU GPL.
A diagram is only as good as its export. Blurry PNGs in a thesis, pixelated flowcharts in slides, fonts that vanish when a colleague opens your file — all of these are export problems, not drawing problems, and all are fixable. This guide covers Dia’s export formats, the resolution settings that matter, transparent backgrounds, and batch-exporting many diagrams at once from the command line.
Need Dia first? See our download page. Mac users: read the Mac setup guide before exporting (font paths differ on macOS).
Which Format Should You Choose?
| Format | Type | Best for | Watch out for |
|---|---|---|---|
| SVG | Vector | Web pages, wikis, documentation — infinitely scalable | Viewer must have your fonts installed, or text may substitute |
| PNG | Raster | Slides, chat, Word docs — universal compatibility | Export at high resolution, or it looks blurry when scaled |
| Vector (via Cairo) | Print, theses, formal reports | File size larger than SVG for complex diagrams | |
| EPS | Vector | LaTeX documents, professional print workflows | Aging format; PDF usually preferred today |
| JPEG | Raster (lossy) | Almost never for diagrams | Compression artifacts ruin sharp lines and text — avoid |
Rule of thumb: vector (SVG/PDF/EPS) whenever the destination supports it; high-resolution PNG everywhere else. Never JPEG for line diagrams.
Step 1: Basic Export
- Save your editable diagram first: File > Save (
.dia). Always keep this file — exports are one-way. - Go to File > Export.
- In the file dialog, choose the format from the type drop-down (e.g. “SVG”, “PNG image”, “PDF”).
- Name your file and click Save. A format-specific options dialog appears — this is where quality is decided (see below).
Step 2: High-Resolution PNG Export
PNG is the most common export, and the most common source of “why is it blurry” complaints. The fix is resolution:
- File > Export, choose PNG.
- In the PNG export options, increase the resolution/size setting. The default export matches screen resolution (~72–96 DPI), which looks fine on screen but blurry in print or when enlarged.
- For documents: export at 300 DPI (print quality). For slides: at least 150 DPI or double the pixel dimensions.
- Set the background color — or choose transparent background if the diagram will sit on colored slides or web pages.
Step 3: Crisp SVG Export
- File > Export, choose SVG.
- SVG is resolution-independent: lines and shapes stay perfect at any zoom.
- Font caveat: SVG references font names rather than embedding them. Stick to widely available fonts (Arial, DejaVu Sans, Liberation Sans) so the diagram renders correctly on other machines. If a recipient sees substituted fonts, that is the cause.
- SVG files open directly in browsers, Inkscape, Illustrator, and embed cleanly in most wikis and static-site generators.
Step 4: PDF Export for Print
- File > Export, choose PDF.
- Check File > Page Setup first: page size and orientation control how a large diagram paginates in the PDF.
- PDF export preserves vector quality — ideal for theses, journal figures, and anything that will be printed.
Step 5: EPS for LaTeX Users
If you write papers in LaTeX, EPS is the traditional figure format. Export via File > Export > EPS, then include it with \includegraphics. (Modern LaTeX toolchains also accept PDF figures directly — PDF export is usually the simpler path today.)
Step 6: Batch-Export Many Diagrams (Command Line)
Exporting dozens of .dia files by hand is tedious. Dia supports command-line export, which makes batch conversion trivial:
- Open a terminal / command prompt.
- Run:
dia -e diagram.png diagram.dia— Dia converts the file without opening the GUI. The output format follows the file extension (.png,.svg,.pdf,.eps). - Batch-convert a whole folder with a loop. On Linux/macOS:
for f in *.dia; do dia -e "${f%.dia}.svg" "$f"; done - On Windows, the same works from a command prompt in Dia’s install directory, or add Dia to your PATH.
Quick Checklist Before You Share
- Spelled everything correctly? (Export, then zoom to 200% and proofread.)
- Fonts embedded or widely available? (See the SVG font caveat above.)
- Resolution adequate for the destination? (300 DPI for print, 150+ for slides.)
- Background right? (Transparent for slides/web, white for documents.)
- Kept the
.diasource file? (You will need it for the inevitable revision.)
Export Recipes for Common Destinations
Microsoft Word / Google Docs
- Export PNG at 300 DPI with a white background.
- Insert via Insert > Pictures (never copy-paste from Dia — clipboard transfer is unreliable).
- If the document will be printed, 300 DPI is non-negotiable; for screen-only reading, 150 DPI keeps file sizes sane.
PowerPoint / Google Slides
- Export PNG with transparent background so the diagram blends with your slide theme.
- Export at 150–200 DPI — enough for projection, small enough to email.
- Newer PowerPoint versions also import SVG directly (Insert > Pictures > This Device), which stays sharp when resized on the slide.
LaTeX papers
- Export PDF (for pdflatex) or EPS (for classic latex workflows).
- Include with
\includegraphics[width=\columnwidth]{diagram.pdf}. - Use a serif-friendly font in Dia (e.g. DejaVu Serif or Times-like) so figure text matches body text.
Websites and wikis
- SVG is king: tiny files, infinite zoom, and text remains selectable/searchable.
- Remember the font caveat — stick to Arial/DejaVu Sans/Liberation Sans so every visitor’s browser renders it correctly.
- For dark-mode sites, export with a transparent background and avoid pure-black text (use dark gray).
Troubleshooting Export Problems
- Text overlapping after export: you edited text at a zoom level where Dia’s on-screen rendering differed from export. Zoom to 100% and check spacing before exporting.
- Missing objects in export: they are probably on a hidden layer. Open View > Layers and make all intended layers visible before exporting.
- Wrong page breaks in PDF: adjust File > Page Setup — the canvas background shows page boundaries; rearrange content to fit.
- Colors look different: screens are RGB; print is CMYK-ish. For critical print work, do a test print of one page before exporting the whole set.
- Dia crashes on export: save first, then export one format at a time. Very large diagrams with hundreds of objects can exhaust memory during rasterization — export SVG/PDF (vector) instead of giant PNGs.
Understanding DPI (Why “High Resolution” Isn’t One Number)
DPI (dots per inch) only means something relative to physical size. A 1000-pixel-wide PNG is:
- ~10 inches wide at 96 DPI (screen) — fine for a monitor, blurry in print.
- ~3.3 inches wide at 300 DPI (print) — razor-sharp on paper.
So “export at 300 DPI” really means “give me enough pixels that the diagram is still 300 DPI at the size it will be printed”. Practical translations:
- Full-page figure in a thesis: ~2500 px wide (8.3 in × 300 DPI).
- Half-page figure: ~1500 px wide.
- Presentation slide: ~1920 px wide is plenty (projectors are ~100 DPI at best).
- Web/wiki: use SVG and stop worrying about pixels entirely.
When Dia’s export dialog asks for output dimensions, work backwards from where the image will live — that one habit eliminates 90% of blurry exports.
Frequently Asked Questions
How do I export with a transparent background?
In the PNG export options dialog, set the background to transparent instead of a solid color. This is ideal for overlaying diagrams on colored slide backgrounds or web pages. Note that JPEG does not support transparency at all — another reason to avoid it.
Why do fonts look wrong when someone else opens my SVG?
SVG files reference font names; they do not embed the font data. If the viewer’s system lacks that font, it substitutes something else. Fix: use common fonts (Arial, DejaVu Sans), or convert text-heavy diagrams to PDF, which handles font embedding more robustly.
What is the best format for a LaTeX paper?
PDF for pdflatex workflows, EPS for traditional latex+dvips. Both are vector and print-perfect. Export from Dia directly — do not go through PNG in between.
My PNG file is huge. How do I shrink it?
Large dimensions × high DPI = large files. Reduce to the resolution you actually need (300 DPI max for print; screen needs far less), or switch to SVG/PDF, which are typically much smaller for line diagrams.
Can I copy-paste a diagram directly into Word or PowerPoint?
Clipboard transfer is unreliable across platforms. The robust route is File > Export to high-resolution PNG (or SVG, which newer Office versions import well), then insert the file. It takes ten seconds and always works.
Where is the .dia source format documented?
The .dia format is Dia’s native editable format (gzipped XML). Always archive it alongside exports. For general Dia questions, see our FAQ.
