2026-10-27 11:45:04 +05:30
<!DOCTYPE html>
2026-10-26 11:17:13 +05:30
< html lang = "en" >
2026-10-27 11:45:04 +05:30
< head >
< meta charset = "UTF-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" >
< meta name = "theme-color" content = "#000000" >
< meta name = "color-scheme" content = "dark" >
< title > Photoshop Lite · Obsidian Liquid Studio</ title >
<!-- Google Fonts: Inter & JetBrains Mono -->
< link rel = "preconnect" href = "https://fonts.googleapis.com" >
< link rel = "preconnect" href = "https://fonts.gstatic.com" crossorigin >
< link href = "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel = "stylesheet" >
2026-10-26 11:17:13 +05:30
<!-- Font Awesome -->
2026-10-27 11:45:04 +05:30
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" >
< link rel = "stylesheet" href = "/styles.css?v=2.5" >
</ head >
< body >
<!-- Ambient Obsidian Caustics -->
< div class = "ambient-canvas" ></ div >
2026-10-26 11:17:13 +05:30
2026-10-27 11:45:04 +05:30
< div class = "ps-app-root" >
<!-- ═══════════════════════════════════════════════════════════
TOP APPLICATION BAR & CONTEXTUAL OPTIONS STRIP
═══════════════════════════════════════════════════════════ -->
< header class = "ps-app-header" >
< div class = "ps-header-left" >
< div class = "ps-brand-badge" onclick = "resetWorkspace()" title = "Reset workspace" >
< div class = "ps-logo-icon" > Ps</ div >
< div class = "ps-brand-text" >
< h1 > Photoshop Lite</ h1 >
< span > Obsidian Studio</ span >
</ div >
</ div >
2026-10-26 11:17:13 +05:30
2026-10-27 11:45:04 +05:30
< div class = "ps-menu-divider" ></ div >
2026-10-26 11:17:13 +05:30
2026-10-27 11:45:04 +05:30
< div class = "ps-file-btns" >
< button class = "btn btn-secondary btn-sm" onclick = "document.getElementById('file-input-multi').click()" title = "Open multiple images (Ctrl+O)" >
< i class = "fa-solid fa-folder-open" ></ i > Open Files
</ button >
< button class = "btn btn-secondary btn-sm" onclick = "document.getElementById('folder-input-tree').click()" title = "Open whole folder hierarchy" >
< i class = "fa-solid fa-folder-tree" ></ i > Open Folder
</ button >
< button class = "btn btn-secondary btn-sm" onclick = "resetWorkspace()" title = "Clear workspace" >
2026-10-27 12:15:25 +05:30
< i class = "fa-solid fa-rotate-left" ></ i > Reset
2026-10-27 11:45:04 +05:30
</ button >
</ div >
2026-10-26 11:17:13 +05:30
2026-10-27 11:45:04 +05:30
< input type = "file" id = "file-input-multi" multiple accept = "image/*,.heic,.avif" style = "display:none;" onchange = "handleFileInputChange(this)" >
< input type = "file" id = "folder-input-tree" webkitdirectory directory multiple style = "display:none;" onchange = "handleFileInputChange(this)" >
</ div >
<!-- Dynamic Contextual Options Bar (Photoshop Top Controls) -->
< div class = "ps-tool-options-strip" id = "ps-tool-options" >
<!-- Dynamically updated by app.js depending on active tool -->
</ div >
< div class = "ps-header-right" >
< div class = "ps-counter-pill" id = "ps-file-counter" >
< i class = "fa-regular fa-images" ></ i > < span > 0 images</ span >
</ div >
2026-10-27 15:45:26 +05:30
< button class = "btn btn-secondary btn-sm" onclick = "openPresetsModal()" title = "Social Media & E-Commerce Dimension Presets" >
< i class = "fa-solid fa-shapes" ></ i > Presets
</ button >
< button class = "btn btn-secondary btn-sm" id = "btn-toggle-split" onclick = "toggleSplitView()" title = "Compare Before vs After in Split View" >
< i class = "fa-solid fa-code-compare" ></ i > Split View
</ button >
2026-10-27 11:45:04 +05:30
< button class = "btn btn-secondary btn-sm" id = "btn-apply-active" onclick = "executeActiveImage()" title = "Execute on current image (Ctrl+Enter)" >
< i class = "fa-solid fa-bolt" ></ i > Apply Active
</ button >
2026-11-17 18:39:25 +05:30
< button class = "btn btn-sm btn-cyan" id = "btn-download-active" onclick = "downloadActiveImage()" style = "display: none;" title = "Download active processed image (Ctrl+S)" >
< i class = "fa-solid fa-download" ></ i > Download Image
</ button >
2026-10-27 11:45:04 +05:30
< button class = "btn btn-sm btn-cyan" id = "btn-batch-all" onclick = "executeBatchAll()" style = "display: none;" title = "Execute active tool on all loaded files" >
< i class = "fa-solid fa-layer-group" ></ i > Batch All (0)
</ button >
</ div >
</ header >
<!-- ═══════════════════════════════════════════════════════════
MAIN BODY: LEFT TOOL DOCK + CANVAS VIEWPORT + INSPECTOR
═══════════════════════════════════════════════════════════ -->
< div class = "ps-main-body" >
<!-- Left Slim Tool Dock -->
< nav class = "ps-tool-dock" id = "ps-dock" >
2026-10-27 12:15:25 +05:30
< div class = "ps-dock-section-title" > CREATIVE TOOLS</ div >
< button class = "ps-tool-btn active" data-tool = "crop" onclick = "selectTool('crop', this)" title = "Visual Interactive Cropper (C)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-solid fa-crop-simple" ></ i ></ div >
< span class = "ps-tool-name" > Visual Crop</ span >
< kbd class = "ps-tool-kbd" > C</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
2026-10-27 12:15:25 +05:30
< button class = "ps-tool-btn" data-tool = "resize" onclick = "selectTool('resize', this)" title = "Resize & Canvas Dimensions (M)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-solid fa-ruler-combined" ></ i ></ div >
< span class = "ps-tool-name" > Resize Canvas</ span >
< kbd class = "ps-tool-kbd" > M</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
2026-10-27 12:15:25 +05:30
< button class = "ps-tool-btn" data-tool = "rotate" onclick = "selectTool('rotate', this)" title = "Rotate & Flip (R)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-solid fa-arrows-rotate" ></ i ></ div >
< span class = "ps-tool-name" > Rotate & Flip</ span >
< kbd class = "ps-tool-kbd" > R</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
2026-10-27 12:15:25 +05:30
< button class = "ps-tool-btn" data-tool = "adjust" onclick = "selectTool('adjust', this)" title = "Color Grading & Tone (A)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-solid fa-sliders" ></ i ></ div >
< span class = "ps-tool-name" > Color Grading</ span >
< kbd class = "ps-tool-kbd" > A</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
2026-10-27 12:15:25 +05:30
< button class = "ps-tool-btn" data-tool = "filter" onclick = "selectTool('filter', this)" title = "Artistic FX Filters (F)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-solid fa-wand-magic-sparkles" ></ i ></ div >
< span class = "ps-tool-name" > Artistic Filter</ span >
< kbd class = "ps-tool-kbd" > F</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
2026-10-27 12:15:25 +05:30
< button class = "ps-tool-btn" data-tool = "round_corners" onclick = "selectTool('round_corners', this)" title = "Rounded Corners & Circular Avatar (O)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-solid fa-circle-notch" ></ i ></ div >
< span class = "ps-tool-name" > Round & Avatar</ span >
< kbd class = "ps-tool-kbd" > O</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
2026-10-27 12:15:25 +05:30
< button class = "ps-tool-btn" data-tool = "border" onclick = "selectTool('border', this)" title = "Border Width & Canvas Padding (D)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-regular fa-square" ></ i ></ div >
< span class = "ps-tool-name" > Border & Pad</ span >
< kbd class = "ps-tool-kbd" > D</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
2026-10-27 12:15:25 +05:30
< button class = "ps-tool-btn" data-tool = "watermark" onclick = "selectTool('watermark', this)" title = "Watermark Stamp Overlay (T)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-solid fa-stamp" ></ i ></ div >
< span class = "ps-tool-name" > Watermark</ span >
< kbd class = "ps-tool-kbd" > T</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
2026-10-27 12:15:25 +05:30
< button class = "ps-tool-btn" data-tool = "masker" onclick = "selectTool('masker', this)" title = "Inpainting Mask Brush (B)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-solid fa-paintbrush" ></ i ></ div >
< span class = "ps-tool-name" > Inpaint Mask</ span >
< kbd class = "ps-tool-kbd" > B</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
< div class = "ps-dock-divider" ></ div >
2026-10-27 12:15:25 +05:30
< div class = "ps-dock-section-title" > OPTIMIZE & EXPORT</ div >
2026-10-27 11:45:04 +05:30
2026-10-27 12:15:25 +05:30
< button class = "ps-tool-btn" data-tool = "convert" onclick = "selectTool('convert', this)" title = "Transcode Format (E)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-solid fa-repeat" ></ i ></ div >
< span class = "ps-tool-name" > Transcode</ span >
< kbd class = "ps-tool-kbd" > E</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
2026-10-27 12:15:25 +05:30
< button class = "ps-tool-btn" data-tool = "compress" onclick = "selectTool('compress', this)" title = "Optimize & Compress (Z)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-solid fa-file-zipper" ></ i ></ div >
< span class = "ps-tool-name" > Compress Size</ span >
< kbd class = "ps-tool-kbd" > Z</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
2026-10-27 12:15:25 +05:30
< button class = "ps-tool-btn" data-tool = "strip_metadata" onclick = "selectTool('strip_metadata', this)" title = "EXIF Privacy Cleaner (S)" >
< div class = "ps-tool-icon-wrap" >< i class = "fa-solid fa-shield-halved" ></ i ></ div >
< span class = "ps-tool-name" > Strip EXIF</ span >
< kbd class = "ps-tool-kbd" > S</ kbd >
2026-10-27 11:45:04 +05:30
</ button >
</ nav >
<!-- Center Stage: Viewport Canvas -->
< main class = "ps-workspace" id = "ps-workspace" >
< div class = "ps-viewport" id = "ps-viewport" >
<!-- Empty State Dropzone -->
< div class = "ps-dropzone-empty" id = "ps-empty-dropzone" onclick = "document.getElementById('file-input-multi').click()" >
< div class = "ps-dropzone-icon" >
< i class = "fa-solid fa-cloud-arrow-up" ></ i >
</ div >
< h2 > Drop Images or Folders Here</ h2 >
< p > High-throughput local processing · Zero telemetry · Real-time proxy chunking</ p >
< div class = "ps-dropzone-actions" onclick = "event.stopPropagation()" >
< button class = "btn btn-secondary" onclick = "document.getElementById('file-input-multi').click()" >
< i class = "fa-solid fa-images" ></ i > Select Multiple Files
</ button >
< button class = "btn btn-secondary" onclick = "document.getElementById('folder-input-tree').click()" >
< i class = "fa-solid fa-folder-tree" ></ i > Select Folder Tree
</ button >
</ div >
</ div >
<!-- Active Image Stage (Populated when image is selected) -->
< div class = "ps-stage-container" id = "ps-stage-container" style = "display: none;" >
< img id = "ps-active-img" class = "ps-active-img" alt = "Stage Image" >
2026-10-27 15:45:26 +05:30
<!-- Split View Before/After Comparison Layer -->
< div class = "ps-split-container" id = "ps-split-container" style = "display: none;" >
< div class = "ps-split-clip-wrap" id = "ps-split-clip-wrap" >
< img id = "ps-split-before-img" class = "ps-split-img" alt = "Before" >
</ div >
< div class = "ps-split-bar" id = "ps-split-bar" >
< div class = "ps-split-knob" >
< i class = "fa-solid fa-arrows-left-right" ></ i >
</ div >
</ div >
< span class = "ps-split-tag ps-split-tag-before" > ORIGINAL</ span >
< span class = "ps-split-tag ps-split-tag-after" > EDITED</ span >
</ div >
2026-10-27 11:45:04 +05:30
<!-- Visual Interactive Cropper Layer -->
< div class = "ps-crop-overlay" id = "ps-crop-overlay" style = "display: none;" >
< div class = "crop-scrim crop-scrim-top" id = "crop-scrim-t" ></ div >
< div class = "crop-scrim crop-scrim-bottom" id = "crop-scrim-b" ></ div >
< div class = "crop-scrim crop-scrim-left" id = "crop-scrim-l" ></ div >
< div class = "crop-scrim crop-scrim-right" id = "crop-scrim-r" ></ div >
< div class = "crop-box" id = "crop-box" >
< div class = "crop-dim-badge" id = "crop-dim-badge" > 0 × 0 px</ div >
< div class = "crop-grid" >
< div class = "crop-grid-h1" ></ div >
< div class = "crop-grid-h2" ></ div >
< div class = "crop-grid-v1" ></ div >
< div class = "crop-grid-v2" ></ div >
</ div >
< div class = "crop-handle crop-handle-nw" data-handle = "nw" ></ div >
< div class = "crop-handle crop-handle-n" data-handle = "n" ></ div >
< div class = "crop-handle crop-handle-ne" data-handle = "ne" ></ div >
< div class = "crop-handle crop-handle-e" data-handle = "e" ></ div >
< div class = "crop-handle crop-handle-se" data-handle = "se" ></ div >
< div class = "crop-handle crop-handle-s" data-handle = "s" ></ div >
< div class = "crop-handle crop-handle-sw" data-handle = "sw" ></ div >
< div class = "crop-handle crop-handle-w" data-handle = "w" ></ div >
</ div >
</ div >
<!-- Mask Painting Canvas Layer -->
< canvas class = "ps-mask-canvas" id = "ps-mask-canvas" style = "display: none;" ></ canvas >
</ div >
<!-- Viewport HUD: Zoom & Fit -->
< div class = "ps-viewport-hud" id = "ps-viewport-hud" >
< button class = "ps-hud-btn" onclick = "zoomViewport(-0.15)" title = "Zoom Out (-)" >< i class = "fa-solid fa-minus" ></ i ></ button >
< span class = "ps-hud-val" id = "ps-zoom-val" > 100%</ span >
< button class = "ps-hud-btn" onclick = "zoomViewport(0.15)" title = "Zoom In (+)" >< i class = "fa-solid fa-plus" ></ i ></ button >
2026-10-27 12:15:25 +05:30
< button class = "ps-hud-btn ps-hud-btn-text" onclick = "resetZoom()" title = "Fit Screen (Ctrl+0)" >< i class = "fa-solid fa-expand" ></ i > Fit</ button >
< button class = "ps-hud-btn ps-hud-btn-text" onclick = "actualSizeZoom()" title = "100% Actual Size" >< i class = "fa-solid fa-compress" ></ i > 100%</ button >
2026-10-27 11:45:04 +05:30
</ div >
</ div >
<!-- Bottom Filmstrip / Queue Tray -->
< div class = "ps-filmstrip" id = "ps-filmstrip" style = "display: none;" >
< div class = "ps-filmstrip-left" >
< button class = "btn btn-secondary btn-sm" onclick = "document.getElementById('file-input-multi').click()" title = "Add more images" >
2026-10-27 12:15:25 +05:30
< i class = "fa-solid fa-plus" ></ i > Add Files
2026-10-27 11:45:04 +05:30
</ button >
< button class = "btn btn-secondary btn-sm" onclick = "resetWorkspace()" title = "Clear all loaded images" >
2026-10-27 12:15:25 +05:30
< i class = "fa-solid fa-trash-can" ></ i > Clear All
2026-10-27 11:45:04 +05:30
</ button >
</ div >
< div class = "ps-filmstrip-scroll" id = "ps-filmstrip-tray" >
<!-- Populated by app.js -->
</ div >
</ div >
</ main >
<!-- Right Inspector Panel (Properties & Batch Hub) -->
< aside class = "ps-inspector" >
< div class = "ps-inspector-tabs" >
2026-10-27 15:45:26 +05:30
< div class = "ps-inspector-tab active" data-tab = "controls" onclick = "switchInspectorTab('controls', this)" title = "Tool Controls" >
< i class = "fa-solid fa-sliders" ></ i > Tools
2026-10-27 11:45:04 +05:30
</ div >
2026-10-27 15:45:26 +05:30
< div class = "ps-inspector-tab" data-tab = "info" onclick = "switchInspectorTab('info', this)" title = "Image Info & Audit Telemetry" >
< i class = "fa-solid fa-circle-info" ></ i > Info
2026-10-27 11:45:04 +05:30
</ div >
2026-10-27 15:45:26 +05:30
< div class = "ps-inspector-tab" data-tab = "history" onclick = "switchInspectorTab('history', this)" title = "History Timeline Snapshots" >
< i class = "fa-solid fa-clock-rotate-left" ></ i > History
</ div >
< div class = "ps-inspector-tab" data-tab = "batch" onclick = "switchInspectorTab('batch', this)" title = "Batch Hub & Proxy Pipeline" >
< i class = "fa-solid fa-layer-group" ></ i > Batch
</ div >
< div class = "ps-inspector-tab" data-tab = "jobs" onclick = "switchInspectorTab('jobs', this)" title = "Enterprise Background Jobs & Governance" >
< i class = "fa-solid fa-server" ></ i > Jobs < span class = "ps-job-counter" id = "badge-jobs-count" style = "display:none;" > 0</ span >
2026-10-27 11:45:04 +05:30
</ div >
</ div >
< div class = "ps-inspector-content" >
<!-- Tab 1: Tool Parameters -->
< div id = "inspector-tab-controls" >
<!-- Populated dynamically depending on active tool -->
</ div >
<!-- Tab 2: Image Info -->
< div id = "inspector-tab-info" style = "display: none;" >
< div class = "ps-section-title" > Active Image Specs</ div >
2026-10-27 15:45:26 +05:30
< div style = "display: flex; flex-direction: column; gap: 8px; font-size: 12px; margin-top: 10px;" >
2026-10-27 11:45:04 +05:30
< div style = "display: flex; justify-content: space-between; padding: 6px 10px; background: var(--bg-input); border-radius: var(--r-sm);" >
< span style = "color: var(--text-3);" > File Name</ span >
< span id = "info-filename" style = "font-family: var(--font-mono); font-weight: 600; color: #fff; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;" > --</ span >
</ div >
< div style = "display: flex; justify-content: space-between; padding: 6px 10px; background: var(--bg-input); border-radius: var(--r-sm);" >
< span style = "color: var(--text-3);" > Resolution</ span >
< span id = "info-dimensions" style = "font-family: var(--font-mono); font-weight: 600; color: var(--accent-cyan);" > --</ span >
</ div >
< div style = "display: flex; justify-content: space-between; padding: 6px 10px; background: var(--bg-input); border-radius: var(--r-sm);" >
< span style = "color: var(--text-3);" > Aspect Ratio</ span >
< span id = "info-aspect" style = "font-family: var(--font-mono); font-weight: 600; color: #fff;" > --</ span >
</ div >
< div style = "display: flex; justify-content: space-between; padding: 6px 10px; background: var(--bg-input); border-radius: var(--r-sm);" >
< span style = "color: var(--text-3);" > File Size</ span >
< span id = "info-filesize" style = "font-family: var(--font-mono); font-weight: 600; color: #fff;" > --</ span >
</ div >
< div style = "display: flex; justify-content: space-between; padding: 6px 10px; background: var(--bg-input); border-radius: var(--r-sm);" >
< span style = "color: var(--text-3);" > MIME Type</ span >
< span id = "info-mimetype" style = "font-family: var(--font-mono); font-weight: 600; color: #fff;" > --</ span >
</ div >
2026-10-27 15:45:26 +05:30
< div style = "display: flex; justify-content: space-between; padding: 6px 10px; background: var(--bg-input); border-radius: var(--r-sm);" >
< span style = "color: var(--text-3);" > Megapixels</ span >
< span id = "info-megapixels" style = "font-family: var(--font-mono); font-weight: 600; color: var(--accent-purple);" > --</ span >
</ div >
< div style = "display: flex; justify-content: space-between; padding: 6px 10px; background: var(--bg-input); border-radius: var(--r-sm);" >
< span style = "color: var(--text-3);" > Audit SHA-256</ span >
< span id = "info-sha256" style = "font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;" > Verified</ span >
</ div >
2026-10-27 11:45:04 +05:30
</ div >
</ div >
2026-10-27 15:45:26 +05:30
<!-- Tab 3: History Timeline -->
< div id = "inspector-tab-history" style = "display: none;" >
< div class = "ps-section-title" >
< span > History Snapshots</ span >
< button class = "btn btn-secondary btn-sm" style = "height: 22px; font-size: 10px; padding: 0 6px;" onclick = "revertToOriginal()" title = "Revert to initial uploaded image" > Reset to Original</ button >
</ div >
< div class = "ps-history-list" id = "ps-history-list" style = "margin-top: 10px; display: flex; flex-direction: column; gap: 6px;" >
<!-- Populated dynamically by app.js -->
</ div >
</ div >
<!-- Tab 4: Batch Hub -->
2026-10-27 11:45:04 +05:30
< div id = "inspector-tab-batch" style = "display: none;" >
2026-10-27 15:45:26 +05:30
< div class = "ps-section-title" > Queue & Governance</ div >
2026-10-27 11:45:04 +05:30
< div style = "background: var(--bg-input); border: 1px solid var(--border-1); border-radius: var(--r-md); padding: 14px; margin-top: 10px; font-size: 12px; display: flex; flex-direction: column; gap: 8px;" >
< div style = "display: flex; justify-content: space-between;" >
< span style = "color: var(--text-3);" > Queued Images:</ span >
< span id = "batch-hub-count" style = "font-weight: 700; color: var(--primary);" > 0</ span >
</ div >
< div style = "display: flex; justify-content: space-between;" >
< span style = "color: var(--text-3);" > Total Size:</ span >
< span id = "batch-hub-size" style = "font-weight: 700; font-family: var(--font-mono); color: #fff;" > 0 MB</ span >
</ div >
< div style = "display: flex; justify-content: space-between;" >
< span style = "color: var(--text-3);" > Proxy Chunk Size:</ span >
< span style = "font-weight: 600; font-family: var(--font-mono); color: var(--accent-cyan);" > 8 MB / 15 files</ span >
</ div >
2026-10-27 15:45:26 +05:30
</ div >
<!-- Enterprise Background & Time Limit Options -->
< div style = "background: var(--bg-input); border: 1px solid var(--border-1); border-radius: var(--r-md); padding: 14px; margin-top: 12px; font-size: 12px; display: flex; flex-direction: column; gap: 10px;" >
< label style = "display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--text-1);" >
< input type = "checkbox" id = "batch-run-background" onchange = "toggleBackgroundGovOptions(this.checked)" >
< span > Run in Background (Async Worker)</ span >
</ label >
< p style = "font-size: 11px; color: var(--text-muted); margin: 0;" > Dispatches the batch job to the server background worker pool so your browser remains completely free.</ p >
< div id = "batch-gov-timeout-box" style = "display: flex; flex-direction: column; gap: 4px;" >
< label style = "font-size: 11px; font-weight: 600; color: var(--text-2);" > Governance Time Limit:</ label >
< select id = "batch-time-limit-sel" style = "height: 32px; font-size: 11.5px;" >
< option value = "30" > 30 Seconds (Fast)</ option >
< option value = "60" > 1 Minute</ option >
< option value = "120" selected > 2 Minutes (Recommended)</ option >
< option value = "300" > 5 Minutes (Heavy Folders)</ option >
< option value = "900" > 15 Minutes (Enterprise Bulk)</ option >
< option value = "1800" > 30 Minutes (Unlimited Archive)</ option >
</ select >
< span style = "font-size: 10.5px; color: var(--text-muted);" >< i class = "fa-solid fa-shield-halved" ></ i > Auto-kills runaway batch tasks when time limit is reached.</ span >
2026-10-27 11:45:04 +05:30
</ div >
</ div >
< div style = "margin-top: 16px;" >
< button class = "btn btn-cyan" style = "width: 100%;" onclick = "executeBatchAll()" >
< i class = "fa-solid fa-play" ></ i > Process All Queued Files
</ button >
</ div >
</ div >
2026-10-27 15:45:26 +05:30
<!-- Tab 5: Enterprise Background Jobs -->
< div id = "inspector-tab-jobs" style = "display: none;" >
< div class = "ps-section-title" >
< span > Background Jobs</ span >
< button class = "btn btn-secondary btn-sm" style = "height: 22px; font-size: 10px; padding: 0 6px;" onclick = "refreshBackgroundJobs()" title = "Refresh job status list" >< i class = "fa-solid fa-rotate" ></ i > Refresh</ button >
</ div >
< div class = "ps-jobs-container" id = "ps-jobs-list" style = "margin-top: 10px; display: flex; flex-direction: column; gap: 10px;" >
< div style = "text-align: center; color: var(--text-muted); font-size: 11.5px; padding: 24px 10px;" >
< i class = "fa-solid fa-server" style = "font-size: 24px; opacity: 0.4; margin-bottom: 8px; display: block;" ></ i >
No active background jobs running.< br > Select "Run in Background" in the Batch tab to dispatch heavy jobs.
</ div >
</ div >
</ div >
2026-10-27 11:45:04 +05:30
</ div >
<!-- Inspector Action Footer -->
< div class = "ps-action-footer" >
2026-11-17 18:39:25 +05:30
< button class = "btn" style = "width: 100%;" onclick = "executeActiveImage()" title = "Apply transformation to active image (Ctrl+Enter)" >
2026-10-27 11:45:04 +05:30
< i class = "fa-solid fa-bolt" ></ i > Apply to Active Image
</ button >
2026-11-17 18:39:25 +05:30
< button class = "btn btn-cyan btn-sm" id = "btn-download-footer" style = "width: 100%; display: none;" onclick = "downloadActiveImage()" title = "Download current processed image (Ctrl+S)" >
< i class = "fa-solid fa-download" ></ i > Download Image
</ button >
2026-10-27 11:45:04 +05:30
< button class = "btn btn-secondary btn-sm" id = "btn-batch-footer" style = "width: 100%; display: none;" onclick = "executeBatchAll()" >
< i class = "fa-solid fa-layer-group" ></ i > Apply to All (0 Files)
</ button >
</ div >
</ aside >
2026-10-26 11:17:13 +05:30
</ div >
</ div >
2026-10-27 11:45:04 +05:30
<!-- Live Brush Cursor Indicator -->
< div id = "brush-cursor-ring" ></ div >
2026-10-26 11:17:13 +05:30
2026-10-27 11:45:04 +05:30
<!-- Batch Processing Modal Dialog -->
< div class = "ps-modal-backdrop" id = "batch-modal" style = "display: none;" >
< div class = "ps-modal-card" >
< div class = "ps-progress-header" >
< h3 >< i class = "fa-solid fa-bolt" style = "color: var(--primary);" ></ i > Processing Batch</ h3 >
< span class = "ps-progress-pct" id = "batch-modal-pct" > 0%</ span >
2026-10-26 11:17:13 +05:30
</ div >
2026-10-27 11:45:04 +05:30
< div class = "ps-progress-track" >
< div class = "ps-progress-fill" id = "batch-modal-fill" ></ div >
2026-10-26 11:17:13 +05:30
</ div >
2026-10-27 11:45:04 +05:30
< div class = "ps-progress-stats" >
< span id = "batch-modal-status" > Preparing files...</ span >
< span class = "ps-progress-speed" id = "batch-modal-speed" > 0.0 MB/s</ span >
2026-10-26 11:17:13 +05:30
</ div >
2026-10-27 11:45:04 +05:30
< div class = "ps-console-box" id = "batch-modal-console" >
< div class = "ps-console-line" > > Initializing Obsidian batch engine...</ div >
2026-10-26 11:17:13 +05:30
</ div >
2026-10-27 11:45:04 +05:30
< div style = "display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px;" >
< button class = "btn btn-secondary btn-sm" id = "btn-modal-close" onclick = "closeBatchModal()" style = "display: none;" >
Close
</ button >
2026-10-26 11:17:13 +05:30
</ div >
</ div >
</ div >
2026-10-27 15:45:26 +05:30
<!-- Enterprise Presets Modal Dialog -->
< div class = "ps-modal-backdrop" id = "presets-modal" style = "display: none;" >
< div class = "ps-modal-card" style = "max-width: 680px;" >
< div class = "ps-progress-header" >
< h3 >< i class = "fa-solid fa-shapes" style = "color: var(--primary);" ></ i > Social & E-Commerce Presets</ h3 >
< button class = "ps-hud-btn" onclick = "closePresetsModal()" >< i class = "fa-solid fa-xmark" ></ i ></ button >
</ div >
< p style = "font-size: 12px; color: var(--text-3); margin-top: -6px;" > Select an enterprise preset to instantly configure aspect ratio and native canvas target dimensions.</ p >
< div class = "ps-preset-sections" >
< div class = "ps-section-title" style = "margin-top: 10px;" > Social Media Formats</ div >
< div class = "ps-presets-grid" >
< div class = "ps-preset-card" onclick = "applyEnterprisePreset('Instagram Portrait', 1080, 1350, '4:5')" >
< div class = "ps-preset-icon" >< i class = "fa-brands fa-instagram" ></ i ></ div >
< div class = "ps-preset-info" >
< span class = "ps-preset-title" > Instagram Portrait</ span >
< span class = "ps-preset-dims" > 1080 × 1350 px (4:5)</ span >
</ div >
</ div >
< div class = "ps-preset-card" onclick = "applyEnterprisePreset('Instagram Square', 1080, 1080, '1:1')" >
< div class = "ps-preset-icon" >< i class = "fa-brands fa-instagram" ></ i ></ div >
< div class = "ps-preset-info" >
< span class = "ps-preset-title" > Instagram Square</ span >
< span class = "ps-preset-dims" > 1080 × 1080 px (1:1)</ span >
</ div >
</ div >
< div class = "ps-preset-card" onclick = "applyEnterprisePreset('Story / Reels', 1080, 1920, '9:16')" >
< div class = "ps-preset-icon" >< i class = "fa-solid fa-mobile-screen" ></ i ></ div >
< div class = "ps-preset-info" >
< span class = "ps-preset-title" > Reels / Stories</ span >
< span class = "ps-preset-dims" > 1080 × 1920 px (9:16)</ span >
</ div >
</ div >
< div class = "ps-preset-card" onclick = "applyEnterprisePreset('YouTube Thumbnail', 1280, 720, '16:9')" >
< div class = "ps-preset-icon" >< i class = "fa-brands fa-youtube" ></ i ></ div >
< div class = "ps-preset-info" >
< span class = "ps-preset-title" > YouTube Thumbnail</ span >
< span class = "ps-preset-dims" > 1280 × 720 px (16:9)</ span >
</ div >
</ div >
</ div >
< div class = "ps-section-title" style = "margin-top: 14px;" > E-Commerce & Marketplaces</ div >
< div class = "ps-presets-grid" >
< div class = "ps-preset-card" onclick = "applyEnterprisePreset('Shopify Product', 2048, 2048, '1:1')" >
< div class = "ps-preset-icon" >< i class = "fa-brands fa-shopify" ></ i ></ div >
< div class = "ps-preset-info" >
< span class = "ps-preset-title" > Shopify HD Product</ span >
< span class = "ps-preset-dims" > 2048 × 2048 px (1:1)</ span >
</ div >
</ div >
< div class = "ps-preset-card" onclick = "applyEnterprisePreset('Amazon Product', 2000, 2000, '1:1')" >
< div class = "ps-preset-icon" >< i class = "fa-brands fa-amazon" ></ i ></ div >
< div class = "ps-preset-info" >
< span class = "ps-preset-title" > Amazon High-Res</ span >
< span class = "ps-preset-dims" > 2000 × 2000 px (1:1)</ span >
</ div >
</ div >
< div class = "ps-preset-card" onclick = "applyEnterprisePreset('Profile Avatar', 512, 512, '1:1')" >
< div class = "ps-preset-icon" >< i class = "fa-solid fa-circle-user" ></ i ></ div >
< div class = "ps-preset-info" >
< span class = "ps-preset-title" > Profile Avatar</ span >
< span class = "ps-preset-dims" > 512 × 512 px (1:1)</ span >
</ div >
</ div >
< div class = "ps-preset-card" onclick = "applyEnterprisePreset('Full HD 1080p', 1920, 1080, '16:9')" >
< div class = "ps-preset-icon" >< i class = "fa-solid fa-desktop" ></ i ></ div >
< div class = "ps-preset-info" >
< span class = "ps-preset-title" > Full HD 1080p</ span >
< span class = "ps-preset-dims" > 1920 × 1080 px (16:9)</ span >
</ div >
</ div >
</ div >
</ div >
< div style = "display: flex; justify-content: flex-end; margin-top: 14px;" >
< button class = "btn btn-secondary btn-sm" onclick = "closePresetsModal()" > Close</ button >
</ div >
</ div >
</ div >
2026-10-27 11:45:04 +05:30
<!-- Toast Notifications -->
2026-10-26 11:17:13 +05:30
< div class = "toast-container" id = "toast-container" ></ div >
2026-10-27 11:45:04 +05:30
< script src = "/app.js?v=2.5" defer ></ script >
</ body >
</ html >