--- title: Exporting description: Export document content to PNG, JPG, WEBP, SVG, `.fig`, or JSX, and convert between document formats. --- # Exporting Export designs from the terminal — raster images, vectors, `.fig` subsets, or JSX code. ## Image Export ```sh openpencil export design.fig # PNG (default) openpencil export design.fig -f jpg -s 2 -q 90 # JPG at 2×, quality 90 openpencil export design.fig -f webp -s 3 # WEBP at 3× openpencil export design.fig -f svg # SVG vector openpencil export design.fig -f fig --page "Page 1" # export one page as .fig openpencil export design.fig -f fig --node 1:23 # export one node as .fig ``` Options: - `-f` — format: `png`, `jpg`, `webp`, `svg`, `jsx` - `-s` — scale: `1`–`4` - `-q` — quality: `0`–`100` (JPG/WEBP only) - `-o` — output path - `--page` — page name - `--node` — specific node ID ## JSX Export Export as JSX with Tailwind utility classes: ```sh openpencil export design.fig -f jsx --style tailwind ``` Output: ```html
Card Title
Description text