Files
vf-cuda-grid/controller/cuda_grid_controller
gx c287caf7c1 controller: browser_overlays — resize screenshot к target w_px×h_px
Без resize element screenshot возвращался в native dims (e.g. Grafana panel
790×258), не fitting configured overlay slot (1280×180 = info strip). Result
— overflow + gap.

С resize (LANCZOS) PNG exactly w_px×h_px, fills slot полностью. Trade-off:
если aspect не совпадает (panel 3:1 → strip 7:1), будет растяжение
horizontal. User responsibility tune w_px/h_px к нужным пропорциям.

Verified: GPU/VRAM panel 790×258 → 1280×180 readable, lines + labels OK.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-22 05:38:45 +01:00
..