Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.20.2
Name Modified Size InfoDownloads / Week
Parent folder
5.20.2_ AI Image (FLUX.1) _ Scalable Vector (SVG) Generators, AI Studio Ribbon Expansion _ Atomic Undo source code.tar.gz 2026-11-11 103.7 MB
5.20.2_ AI Image (FLUX.1) _ Scalable Vector (SVG) Generators, AI Studio Ribbon Expansion _ Atomic Undo source code.zip 2026-11-11 104.2 MB
README.md 2026-11-11 12.2 kB
OpenPublisher5-i386-windowsXP.exe 2026-11-11 56.5 MB
openpublisher5_amd64-windows-portable.exe 2026-11-11 183.2 MB
openpublisher5_amd64-windows.exe 2026-11-11 165.2 MB
openpublisher5_amd64-macos.dmg 2026-11-11 233.1 MB
openpublisher5_amd64-linux.run 2026-11-11 193.4 MB
openpublisher5_amd64-linux.rpm 2026-11-11 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-11-11 153.6 MB
openpublisher5_amd64-linux.deb 2026-11-11 156.2 MB
openpublisher5_amd64-linux.AppImage 2026-11-11 166.4 MB
openpublisher5_amd64-freebsd.pkg 2026-11-11 185.5 MB
Totals: 13 Items   1.9 GB 0

📋 Summary

OpenPublisher v5.20.2 expands the built-in AI Assistant into a complete creative studio by introducing two dedicated generation engines: an AI Image Generator powered by Cloudflare Workers AI FLUX.1 (openpub-img-1), and an AI Vector (SVG) Generator powered by our distributed 7-node text cluster (openpub-ai-1 through openpub-ai-7).

The desktop and web user interfaces now feature an expanded 3-button AI Studio ribbon group on both Home and Insert tabs (AI Layout Assistant, AI Image, and AI Vector), each paired with dedicated theme-reactive icons (AI.png, PhotoAI.png, and VectorAI.png). The assistant modal provides a normalized, non-wrapping 3-tab segmented workflow with comprehensive educational Info Badges that explain raster pixel art versus scalable vector artwork, style presets, placement options, 503 GPU quota automatic SVG fallbacks, and single-step atomic Ctrl+Z undo.

Complete repository-wide version synchronization has been applied across the Service Worker cache (open-publisher-v5-20-2-1), cross-origin cache guards, About dialog, script cachebusters, and documentation.

op-AIImageAndScalableVectorSVGGenerators


🛠️ Key Features & Enhancements

1. Expanded 3-Button "AI Studio" Ribbon Group (index.html & style.css)

  • Three Dedicated Tools in Home & Insert Tabs:
  • AI Layout Assistant (#ribbon-home-ai-btn / #ribbon-insert-ai-btn): Opens Tab 1 for full-page layout generation and workspace command execution.
  • AI Image (#ribbon-home-ai-img-btn / #ribbon-insert-ai-img-btn): Opens Tab 2 for FLUX.1 raster pixel artwork, photography, and textured background generation.
  • AI Vector (#ribbon-home-ai-vec-btn / #ribbon-insert-ai-vec-btn): Opens Tab 3 for scalable SVG vector graphics, emblems, logos, and line art.
  • Theme-Reactive Dedicated Icons:
  • Replaced temporary overlay badges with dedicated custom icons for each tool: ui/icons/AI.png for AI Layout, ui/icons/PhotoAI.png for AI Image, and ui/icons/VectorAI.png for AI Vector.
  • All icons render unoccluded at 28x28 with dynamic CSS theme hue-shifting and grayscale filters (--ui-theme-hue-shift, --ui-theme-grayscale).

2. Dedicated FLUX.1 AI Image Generation Engine (extensions/ai-assistant.js)

  • Serverless Cloudflare Workers AI FLUX.1 Integration:
  • Connects to https://openpub-img-1.openpublisher.workers.dev with JSON POST { prompt } including selected style presets.
  • Reuses persistent device UUID (X-Device-ID) and 20-second cooldown enforcement (COOLDOWN_MS = 20000) across all generation tabs.
  • Style Presets & Placement Control:
  • Supports quick-select style chips: Photorealistic, Watercolor, 3D Render, Digital Painting, Cinematic, Page Texture.
  • Flexible placement selector:
    • Insert as Canvas Picture: Wraps and positions a clean .pub-element[data-type="image"] on #paper.
    • Set as Page Background: Applies paper.style.background = 'url(...) center center / cover no-repeat' with instant thumbnail and history synchronization.
  • Resilient 429 Rate-Limit & 503 GPU Quota Fallback:
  • Displays user-friendly notifications when HTTP 429 rate limits are reached.
  • If the FLUX.1 worker returns HTTP 503 (daily GPU compute limit reached), the engine automatically falls back to generating a scalable vector SVG graphic via the 7-node cluster, placing the vector artwork on the canvas and notifying the user.

3. Scalable Vector (SVG) Generation Engine (extensions/ai-assistant.js)

  • Crisp Vector Illustrations across 7 Distributed Nodes:
  • Routes vector requests through the load-balanced 7-node cluster using a dedicated SVG system prompt (buildAIVectorSVGSystemPrompt).
  • Generates multi-layered, visually rich SVG graphics using <path>, <circle>, <rect>, <polygon>, <defs>, and gradient elements centered on a 512x512 viewBox.
  • Security Sanitization & Tool Compatibility:
  • Strips <script>, inline event handlers, foreignObject, and external image tags (sanitizeSvgMarkup).
  • Inserts vector containers as .pub-element[data-type="shape"] so elements integrate seamlessly with OpenPublisher selection, sizing, and styling tools.
  • Vector Style Presets:
  • Supports preset chips: Flat Illustration, Logo / Emblem, Line Art / Stencil, Sticker / Badge, Detailed Scene.

4. Normalized 3-Tab Modal UI & User-Friendly Info Badges (extensions/ai-assistant.js & style.css)

  • Normalized Segmented Tab Control:
  • Balanced 3-segment pill control across #op-ai-modal-overlay with equal 1/3 tab distribution (flex: 1 1 0), centered icon and label alignment, and strict non-wrapping (white-space: nowrap) to eliminate awkward multi-line tab text.
  • Active tabs pop forward with clean white card backgrounds (or dark slate in dark mode), theme-colored text and icons, and subtle elevation shadows.
  • Accessible Tab Switching:
  • Updated #op-ai-modal-overlay with accessible tab buttons (.op-ai-tab[data-tab="..."]) that switch visible panels and automatically update the submit button action and label:
    • Tab 1: Generate Layout
    • Tab 2: Generate Image
    • Tab 3: Generate Vector (SVG)
  • Prominent Informational Callouts:
  • Tab 2 Info Badge: "🖼️ AI Image (Pixel Artwork & Photos): Generates rich, detailed raster images (JPEG) such as photographs, watercolors, 3D renders, and textured backgrounds. Best for realistic scenes and posters. Need a crisp logo, icon, or illustration that scales to any print size without blurring? Switch to AI Vector (SVG)."
  • Tab 3 Info Badge: "✒️ What is an AI Vector (SVG)? Unlike standard pixel images that can get blurry when stretched, SVG (Scalable Vector Graphics) are drawn using mathematical shapes, curves, and gradients. They stay 100% razor-sharp at any print size (from a business card to a giant poster), have transparent backgrounds, and let you recolor individual shapes using OpenPublisher's CSS Colors & Style tool! Best for logos, clipart, icons, badges, and flat illustrations."

5. Atomic Single-Step Undo & Layout Plan Integration (extensions/ai-assistant.js, core/pages.js)

  • Baseline History Guarantees (ensureBaselineHistory):
  • Automatically ensures a clean pre-generation snapshot exists in history before inserting AI images or vector artwork, enabling single-step Ctrl+Z (or clicking "Undo AI Action") to revert insertions immediately.
  • Page background restoration in core/pages.js clears paper.style.backgroundImage when reverting to solid or white pages.
  • Layout Plan ai_image Pre-Resolution:
  • Allows full-page layout plans from Tab 1 to specify type: "ai_image" elements ({ type: "ai_image", x_mm, y_mm, width_mm, height_mm, props: { prompt, borderRadiusPx } }).
  • Pre-resolves remote image data before synchronous canvas DOM placement so the entire multi-element layout and styling revert in a single undo step.

6. Service Worker Cross-Origin Guard (sw.js)

  • Isolated Cross-Origin Traffic:
  • Added strict origin verification in sw.js: if (url.origin !== self.location.origin) return;.
  • Guarantees third-party and worker requests (openpub-img-1, openpub-ai-*, api.iconify.design, CDNs) bypass Service Worker cache stores.

🔄 Version Synchronization (v5.20.2)

Component Target Version Updated Reference
Service Worker v5.20.2 open-publisher-v5-20-2-1 and header comment in sw.js
AI Studio Engine v5.20.2 Header version and AIAssistant.VERSION (5.20.2) in extensions/ai-assistant.js
Ribbon Toolbar & QAT v5.20.2 3 side-by-side buttons in Home and Insert ribbons; removed redundant AI button from QAT in index.html
About Dialog & UI Interactions v5.20.2 Header comment, Knowledge Base icon query strings, and About dialog (• v5.20.2) in extensions/ui-interactions.js
Print & Watermark Engines v5.20.2 Header comment in extensions/print-engine.js; header and init log in extensions/watermark-engine.js
Proofing & Spellcheck v5.20.2 Headers and load log in tools/proofing/dictionary.js and tools/proofing/spellcheck-engine.js
PWA Installer v5.20.2 Service worker registration sw.js?v=5.20.2 in extensions/pwa-install.js
Application Cachebusters v5.20.2 All script, style, and image asset query strings updated to ?v=5.20.2 in index.html
Dashboard & Template Assets v5.20.2 ui/dashboard.js and elements/templates/templates.js (getTemplateAssetUrl)
README Badges v5.20.2 Badge image query strings updated to ?v=5.20.2 in README.md

✅ Browser Verification Coverage

Executed automated Playwright suites in headless Chromium against local server instances:

  • Comprehensive v5.20.2 Studio Suite (scratch/test_v5202_sync.py - all 9 checks passing):
  • Check 1 (Ribbon Controls): Verified 3 buttons in Home (#ribbon-home-ai-btn, #ribbon-home-ai-img-btn, #ribbon-home-ai-vec-btn) and Insert ribbons with correct labels and badges (LAYOUT, IMAGE, VECTOR).
  • Check 2 (Modal Navigation): Verified clicking ribbon buttons opens modal directly to requested tabs (layout, image, vector).
  • Check 3 (Info Badges): Confirmed exact required copy for raster pixel artwork vs scalable vector SVG graphics.
  • Check 4 (AI Image Canvas Placement & Undo): Confirmed image placement on #paper and single-step undo via the "Undo AI Action" button.
  • Check 5 (AI Image Page Background & Undo): Verified setting page background and reverting cleanly via Ctrl+Z to white canvas.
  • Check 6 (Scalable Vector SVG Placement & Undo): Confirmed SVG generation, multi-layered markup placement, and atomic Ctrl+Z undo.
  • Check 7 (503 GPU Quota Fallback): Verified simulated HTTP 503 on FLUX.1 automatically falls back to generating a scalable vector SVG with user notice.
  • Check 8 (429 Rate Limit Handling): Confirmed simulated HTTP 429 stops and renders user notification cleanly.
  • Check 9 (Version & Console Health): Confirmed window.AIAssistant.VERSION === "5.20.2" and zero unexpected console or page errors.
  • Layout Plan Pre-Resolution Suite (scratch/test_layout_ai_elements.py - passing):
  • Verified ai_image and ai_vector elements inside full-page layout plans resolve before DOM placement and revert atomically in a single Ctrl+Z step.

✅ Checklist Completed

  • [x] Expand AI Studio ribbon group in Home and Insert ribbons to 3 buttons side-by-side (AI Layout, AI Image, AI Vector)
  • [x] Style ribbon buttons with theme-reactive hue shifting and dedicated icons (AI.png, PhotoAI.png, VectorAI.png)
  • [x] Implement FLUX.1 AI Image Generator (openpub-img-1.openpublisher.workers.dev) with style presets and canvas vs background placement
  • [x] Implement Scalable Vector (SVG) Generator across 7-node cluster with style presets and markup sanitization
  • [x] Normalize 3-tab modal UI into a balanced, non-wrapping segmented control with exact user-specified Info Badges for raster vs vector artwork
  • [x] Support automatic fallback to SVG illustration when FLUX.1 returns HTTP 503
  • [x] Ensure atomic single-step Ctrl+Z undo across images, vectors, and page backgrounds
  • [x] Support ai_image and ai_vector element types in full-page layout plans
  • [x] Guard Service Worker (sw.js) against cross-origin and non-GET caching
  • [x] Synchronize version 5.20.2 across sw.js cache (open-publisher-v5-20-2-1), index.html, and all JavaScript and documentation files
  • [x] Run Playwright automated verification suites with zero console errors
  • [x] Keep release notes outside project directory with zero em dashes

🚀 Version 5.20.2 - Open Publisher

Source: README.md, updated 2026-11-11