Importing Files
Rayforge supports importing various file formats, both vector and raster. This page explains how to import files and optimize them for best results.
Supported File Formats
Vector Formats
| Format | Extension | Import Method | Best For |
|---|---|---|---|
| SVG | .svg | Direct vectors or trace | Vector graphics, logos, designs |
| DXF | .dxf | Direct vectors | CAD drawings, technical designs |
.pdf | Render and trace | Documents with vector content | |
| Ruida | .rd | Direct vectors | Ruida controller job files |
Raster Formats
| Format | Extension | Import Method | Best For |
|---|---|---|---|
| PNG | .png | Trace to vectors | Photos, images with transparency |
| JPEG | .jpg, .jpeg | Trace to vectors | Photos, continuous-tone images |
| BMP | .bmp | Trace to vectors | Simple graphics, screenshots |
All raster images are traced to create vector paths that can be used for laser operations. The quality depends on the tracing configuration.
Importing Files
The Import Dialog
Rayforge features a unified import dialog that provides live preview and configuration options for all supported file types. The dialog allows you to:
- Preview your import before adding it to the document
- Configure tracing settings for raster images
- Choose import method for SVG files (direct vectors or trace)
- Adjust parameters like threshold, invert, and auto-threshold

Method 1: File Menu
- File Import (or Ctrl+I)
- Select your file from the file picker
- Configure import settings in the import dialog
- Preview the result before importing
- Click Import to add to canvas and document tree
Method 2: Drag and Drop
- Drag file from your file manager
- Drop onto the Rayforge canvas
- Configure import settings in the import dialog
- Preview the result before importing
- Click Import to add to canvas and document tree
Method 3: Command Line
# Open Rayforge with a file
rayforge myfile.svg
# Multiple files
rayforge file1.svg file2.dxf
Auto-Resize on Import
When importing files that are larger than your machine's work area, Rayforge will automatically:
- Scale down the imported content to fit within the machine boundaries
- Preserve aspect ratio during scaling
- Center the scaled content in the workspace
- Show a notification with the option to undo the resize
The resize notification appears as a toast message:
- ⚠️ "Imported item was larger than the work area and has been scaled down to fit."
- Includes a "Reset" button to undo the auto-resize
- The toast remains visible until dismissed or the reset action is taken
This ensures your designs always fit within your machine's capabilities while giving you the flexibility to restore the original size if needed.
SVG Import
SVG (Scalable Vector Graphics) is the recommended format for vector designs.
Import Options in the Dialog
When importing SVG, the import dialog provides a toggle switch to choose between two methods:
1. Use Original Vectors (Recommended)
This option is enabled by default in the import dialog.
How it works:
- Parses SVG and converts paths directly to Rayforge geometry
- High-fidelity preservation of curves and shapes
- Maintains exact vector data
Pros:
- Best quality and precision
- Editable paths
- Small file size
Cons:
- Some advanced SVG features not supported
- Complex SVGs may have issues
Use for:
- Clean vector designs from Inkscape, Illustrator
- Simple to moderate complexity
- Designs without advanced SVG features
2. Trace Bitmap
Disable "Use Original Vectors" to use this method.
How it works:
- Renders SVG to a raster image first
- Traces the rendered image to create vectors
- More compatible but less precise
Pros:
- Handles complex SVG features
- Robust fallback method
- Supports effects and filters
Cons:
- Quality loss from rasterization
- Larger file sizes
- Not as precise
Use for:
- SVGs that fail direct import
- SVGs with effects, filters, gradients
- When direct import produces errors
Live Preview
The import dialog shows a live preview of how your SVG will be imported:
- Vector paths are displayed in blue overlay
- For trace mode, the original image is shown with the traced paths
- Preview updates in real-time as you change settings
SVG Best Practices
Prepare your SVG for best results:
-
Convert text to paths:
- Inkscape:
Path → Object to Path - Illustrator:
Type → Create Outlines
- Inkscape:
-
Simplify complex paths:
- Inkscape:
Path → Simplify(Ctrl+L) - Remove unnecessary nodes
- Inkscape:
-
Ungroup nested groups:
- Flatten hierarchy where possible
Object → Ungroup(Ctrl+Shift+G)
-
Remove hidden elements:
- Delete guides, grids, construction lines
- Remove invisible/transparent objects
-
Save as Plain SVG:
- Inkscape: "Plain SVG" or "Optimized SVG"
- Not "Inkscape SVG" (has extra metadata)
-
Check document units:
- Set to mm or inches as appropriate
- Rayforge uses mm internally
Common SVG features that may not import:
- Gradients (convert to solid fills or raster)
- Filters and effects (flatten to paths)
- Masks and clipping paths (expand/flatten)
- Embedded raster images (export separately)
- Text (convert to paths first)
DXF Import
DXF (Drawing Exchange Format) is common for CAD software.
DXF Versions
Rayforge supports standard DXF formats:
- R12/LT2 (recommended) - Best compatibility
- R13, R14 - Good support
- R2000+ - Generally works, but R12 is safer
Tip: Export as R12/LT2 DXF for maximum compatibility.