Add camera image rotation option (#672)

Per-printer camera rotation (0°/90°/180°/270°) for cameras mounted
  in portrait or upside-down. CSS rotation for live views, Pillow
  rotation for notification snapshots. Setting visible in external
  camera config when enabled.
This commit is contained in:
maziggy
2026-03-17 13:59:01 +01:00
parent aeae5cfa23
commit fe3c1983af
19 changed files with 129 additions and 69 deletions
+2
View File
@@ -99,6 +99,7 @@ export interface Printer {
external_camera_url: string | null;
external_camera_type: string | null; // "mjpeg", "rtsp", "snapshot"
external_camera_enabled: boolean;
camera_rotation: number; // 0, 90, 180, 270 degrees
plate_detection_enabled: boolean; // Check plate before print
plate_detection_roi?: PlateDetectionROI; // ROI for plate detection
created_at: string;
@@ -279,6 +280,7 @@ export interface PrinterCreate {
external_camera_url?: string | null;
external_camera_type?: string | null;
external_camera_enabled?: boolean;
camera_rotation?: number;
plate_detection_enabled?: boolean;
plate_detection_roi?: PlateDetectionROI;
}