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-05-27 10:50:21 +07:00
2026-04-18 15:23:00 +01:00
2026-04-18 15:23:00 +01:00
2026-04-18 23:31:14 +01:00
2026-05-22 17:29:34 -04:00
2026-04-20 15:59:22 -07:00
2026-04-05 23:50:54 +01:00
2026-05-22 17:38:59 -04:00
2026-05-18 14:05:14 -04:00
2026-04-18 15:23:00 +01:00
2026-04-05 23:50:54 +01:00
2026-05-18 23:03:38 -04:00
2026-05-18 14:40:13 -04:00
2026-04-18 15:23:00 +01:00
2026-04-18 15:23:00 +01:00
2026-04-18 15:23:00 +01:00
2026-05-23 05:39:24 +05:30
2026-05-18 23:19:50 -04:00
2026-05-22 17:29:34 -04:00
2026-04-18 15:23:00 +01:00
2026-05-22 17:29:34 -04:00
2026-04-18 15:23:00 +01:00
2026-04-12 18:10:55 +01:00
2026-04-18 15:24:02 +01:00
2026-04-05 23:50:54 +01:00
2026-03-29 13:02:24 +01:00
2026-05-18 13:53:34 -04:00
2026-05-03 22:30:17 +01:00
2026-05-18 14:05:18 -04:00