napari-svg
A plugin for writing svg files with napari
What it is and what it does
Napari-svg is a napari plugin that adds SVG export capability to the napari image viewer. It allows users to save their visualizations—including image data and annotations—as scalable vector graphics files, which is useful for publication-quality output, further editing in vector graphics software, or integration into documents.
The plugin depends on imageio, numpy, and vispy (napari's visualization backend) and is designed to integrate seamlessly into napari's file export workflow. It is actively maintained, supports Python 3.9 through 3.12, and carries no known security vulnerabilities.
Use it for:
- Export annotated microscopy images from napari as vector graphics for publication in scientific papers
- Save napari visualizations with overlaid shapes or points as SVG for further editing in design software
- Generate scalable diagrams from napari's layer-based visualizations without rasterization artifacts
- Preserve annotation data in a portable, editable format when sharing napari analysis results
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Napari-svg is a plugin that exports image data and annotations from napari visualizations as SVG files, enabling vector-based output from the napari image viewer.
Yes, if you use napari and need SVG export. The plugin has low install friction, is actively maintained, carries no security issues, and integrates directly into napari's export workflow. It is worth installing for any napari user who regularly needs vector output or publication-ready graphics from their visualizations.
Install
napari-svg on PyPI
pip
pip install napari-svguv
uv add napari-svgpoetry
poetry add napari-svgInstalling napari-svg
Before you install
Low install friction with a pure Python wheel and only three runtime dependencies (imageio, numpy, vispy). The package is actively maintained with a recent commit on 2026-07-01 and receives regular updates.
License in practice
Distributed under the permissive BSD-3 license, allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install napari-svg
import napari
from napari_svg import svg_writer
# napari-svg integrates as a plugin; use napari's File > Export as SVG menu or call the writer directly
Requires napari to be installed separately; napari-svg functions as a plugin within the napari ecosystem.
Verify before relying
- What specific napari layer types (image, shapes, points, etc.) are supported for SVG export
- Whether the plugin preserves layer properties like opacity, blending modes, or color maps in the SVG output
- Performance characteristics when exporting large or complex multi-layer visualizations
Package facts
| License | BSD-3 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — imageio, numpy, vispy |
| Maintenance | actively maintained — 577 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 190,471/month — #9,910 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: napari_svg-0.2.1-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
napari-consoleAdds an interactive Python console panel to…
permissive · top 15,000 on PyPI
naparinapari is an interactive, multi-dimensional…
permissive · top 15,000 on PyPI
napari-plugin-managerProvides a graphical interface for discovering,…
permissive · top 15,000 on PyPI
npe2npe2 is a plugin engine and management system…
permissive · top 15,000 on PyPI
scourScour optimizes and cleans SVG files by…
permissive · top 15,000 on PyPI
napari-plugin-engineA plugin discovery and hook-calling system for…
permissive · top 15,000 on PyPI
svgutilssvgutils lets you programmatically edit, scale,…
permissive · top 15,000 on PyPI
CairoSVGCairoSVG converts SVG files to PDF, EPS, PS,…
copyleft · top 5,000 on PyPI
vtracerConverts raster images (JPG, PNG) into vector…
permissive · top 15,000 on PyPI
pycat-napariPyCAT-Napari is a napari-based desktop…
permissive · top 15,000 on PyPI