--- title: Exportieren description: .fig-Dateien als PNG, JPG, WEBP, SVG oder JSX mit Tailwind-Klassen rendern. --- # Exportieren Designs vom Terminal aus exportieren — Rasterbilder, Vektoren oder JSX-Code. ## Bildexport ```sh openpencil export design.fig # PNG (Standard) openpencil export design.fig -f jpg -s 2 -q 90 # JPG in 2×, Qualität 90 openpencil export design.fig -f webp -s 3 # WEBP in 3× openpencil export design.fig -f svg # SVG-Vektor ``` Optionen: - `-f` — Format: `png`, `jpg`, `webp`, `svg`, `jsx` - `-s` — Skalierung: `1`–`4` - `-q` — Qualität: `0`–`100` (nur JPG/WEBP) - `-o` — Ausgabepfad - `--page` — Seitenname - `--node` — bestimmte Knoten-ID ## JSX-Export Als JSX mit Tailwind-Utility-Klassen exportieren: ```sh openpencil export design.fig -f jsx --style tailwind ``` Ausgabe: ```html
Card Title
Description text