Jeff Laflamme
6c44273d55
fix(board-view): rebase onto main — fold responseMode + restore jpg
Rebased onto current main (d765bfe). Merged changes:
Board view (kicad-cli, cffi-free):
- Replace pcbnew/PLOT_CONTROLLER + cairosvg with kicad-cli SVG export
and cffi-free PNG conversion: pymupdf → inkscape → imagemagick chain
- pcbPath optional param with fallback to loaded board
- Restore jpg output via PIL post-processing on PNG bytes
- responseMode inline/file from main's #161: inline returns imageData,
file writes <board>_2d_view.<ext> and returns filePath
- shutil.which for cross-platform kicad-cli lookup
- Explicit TimeoutExpired catch; errorDetails on all error returns
- Validate fmt strictly; TypeScript returns image type for inline png/jpg
Schematic view (kicad_interface.py):
- Same cffi-free _svg_to_png helper for get_schematic_view and
get_schematic_view_region (pymupdf → inkscape → imagemagick)
Tests:
- Update test_get_board_2d_view_save_to_file.py to mock subprocess/
kicad-cli and _svg_to_png instead of PLOT_CONTROLLER/cairosvg
- All 5 responseMode tests pass
2026-05-27 10:50:21 +07:00
..
2026-04-19 12:15:43 -04:00
2026-05-27 10:50:21 +07:00
2026-05-22 17:41:47 -04:00
2026-04-18 15:23:00 +01:00
2026-04-18 15:23:00 +01:00
2026-05-27 10:50:21 +07:00
2026-04-18 15:23:00 +01:00
2026-05-18 14:40:13 -04:00
2026-05-27 10:50:21 +07:00
2026-04-18 15:23:00 +01:00
2026-04-18 15:23:00 +01:00