Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.2.2
Name Modified Size InfoDownloads / Week
Parent folder
OpenPublisher-5-x86_64.AppImage 2026-10-02 166.4 MB
openpublisher5_amd64-windows-portable.exe 2026-10-02 183.2 MB
openpublisher5_amd64-windows.exe 2026-10-02 165.2 MB
5.2.2_ Ultra High-Resolution WordArt Engine_ Dynamic Print _ Anisotropic In-Editor Supersampling source code.tar.gz 2026-10-02 22.4 MB
5.2.2_ Ultra High-Resolution WordArt Engine_ Dynamic Print _ Anisotropic In-Editor Supersampling source code.zip 2026-10-02 22.7 MB
README.md 2026-10-02 10.5 kB
openpublisher5_amd64-macos.dmg 2026-10-02 233.1 MB
openpublisher5_amd64-linux.run 2026-10-02 193.4 MB
openpublisher5_amd64-linux.rpm 2026-10-02 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-10-02 153.6 MB
openpublisher5_amd64-linux.deb 2026-10-02 156.2 MB
openpublisher5_amd64-freebsd.pkg 2026-10-02 185.5 MB
Totals: 12 Items   1.7 GB 0

πŸš€ Summary

Version 5.2.2 delivers a comprehensive high-resolution rasterization and anisotropic supersampling engine for WordArt, establishing vector-grade sharpness across both the physical print/PDF export pipeline and the interactive in-editor canvas workspace. WordArt now dynamically renders with independent horizontal and vertical scaling (up to 12.0x width and 18.0x height supersampling), generating rasters up to 6,000 pixels wide and 4,500 pixels high. This completely eliminates blur when WordArt is stretched tall, stretched wide, or viewed on 1080p, 1440p, 4K, and high-DPI Retina screens.

Crucially, WordArt strictly remains flattened to pure image/PNG formats as required to prevent font misalignment, layout shifting, and text-offset bugs across diverse printers and PDF readers. By pairing synchronized high-resolution offscreen canvas rendering with physical shadow scaling, real-time debounced drag re-baking, hardware contrast optimization, and strict decoding hooks, WordArt is razor-sharp regardless of canvas enlargement or stretch.

In addition, version 5.2.2 fixes a critical page serializer bug where WordArt elements lost metadata on page transitions, automatically upgrades existing WordArt across loaded publications, and synchronizes cachebusters across all application components, Service Worker (open-publisher-v5-2-2), PWA registration, and dashboard template fetching.


πŸ” Root Cause Analysis of Editor Blur on Stretch

The printed WordArt was already razor-sharp, but in-editor stretched WordArt appeared blurry due to three interconnected factors:

  1. Vertical Aspect-Ratio Starvation in Canvas 2D: Previous scaling evaluated display dimensions using a single uniform multiplier. Because WordArt text is naturally 4x to 8x wider than it is tall, a uniform scale factor capped at 8.0 generated a canvas ~5,000px wide but only ~1,000px tall. When a user stretched the element box taller (e.g., to 400px - 600px tall), CSS object-fit: fill stretched those 1,000 vertical pixels into the tall box. On high-DPI screens (150% - 200% scaling), this yielded less than 1.0x physical pixel density, causing noticeable vertical blurring and soft edges.

  2. Absence of Real-Time Drag Re-Baking: During mouse drag resizing in extensions/system-patches.js, CSS style.width and style.height were updated on every mouse move, but WordArt re-baking was completely absent until mouse release. Users observed an intensely stretched, pixelated raster while actively adjusting dimensions.

  3. Chromium Texture Bilinear Resampling: Without explicit CSS image-rendering hints, Chromium applies a standard bilinear texture filter across scaled canvas images. Adding -webkit-optimize-contrast and high-quality forces Chromium to prioritize crisp edge definition and contrast over soft bilinear blending.


πŸ’‘ Architectural Solution: Anisotropic Supersampling Engine

Rather than compromising print reliability by using fragile live SVG/CSS text, Open Publisher 5.2.2 implements an automated anisotropic supersampling pipeline across both print and editor workflows:

  1. Independent Dual-Axis Scaling (safeScaleX & safeScaleY): renderWordArtCanvasSync and generateWordArtPNG now accept independent horizontal and vertical scale multipliers: safeScaleX = Math.max(0.5, Math.min(12.0, scaleFactorX)); safeScaleY = Math.max(0.5, Math.min(18.0, scaleFactorY)); The 2D canvas context renders vector glyphs, paths, and gradients directly at the exact aspect ratio of the user's element box. When trimmed, the PNG matches the display aspect ratio, meaning CSS object-fit: fill requires zero non-uniform distortion.

  2. Synchronous Baseline Dimension Caching (baselineDimCache): Baseline unscaled dimensions are synchronously cached upon first render. When an element is resized, refreshBetaWordArt retrieves the baseline bounds instantly without asynchronous image loading, computing target pixel dimensions guaranteed at 3.0x to 4.5x device pixel density: targetW = Math.max(800, Math.min(6000, Math.round(dispW * supersample))); targetH = Math.max(400, Math.min(4500, Math.round(dispH * supersample))); scaleX = Math.max(0.8, Math.min(12.0, targetW / baseW)); scaleY = Math.max(0.8, Math.min(18.0, targetH / baseH));

  3. Real-Time Debounced Drag Sharpening (40ms): In extensions/system-patches.js, canvas/interaction-mouse.js, and canvas/interaction.js, mouse move events during resize trigger a high-performance 40ms debounced refreshBetaWordArt(state.selectedEl). WordArt dynamically sharpens in real time as the user drags, followed by immediate execution on mouse release.

  4. Hardware-Optimized Contrast (style.css): .beta-wa-img now includes: image-rendering: -webkit-optimize-contrast; image-rendering: high-quality; This tells Chromium's GPU compositor to preserve razor-sharp edges and high-contrast boundaries when displaying scaled rasters.

  5. Ribbon & Properties Panel Synchronization (ui/ui.js): Adjusting element width or height numeric inputs in the ribbon or properties panel immediately calls refreshBetaWordArt(el), ensuring dimension edits via inputs achieve identical vector clarity.

  6. Service Worker Disk-Cache Bypass (sw.js): The fetch event listener in sw.js now uses fetch(event.request, { cache: 'no-cache' }). This guarantees that browser reloads fetch fresh scripts from the server rather than serving stale disk-cached JavaScript files.


πŸ› οΈ Files Modified

  • beta-wordart.js: Implemented independent safeScaleX and safeScaleY up to 12.0x and 18.0x, synchronous baselineDimCache, and anisotropic refreshBetaWordArt.
  • style.css: Added -webkit-optimize-contrast and high-quality image rendering to .beta-wa-img.
  • system-patches.js: Added 40ms debounced real-time WordArt sharpening during handle drag in the master mousemove loop.
  • interaction-mouse.js: Added 40ms debounced sharpening in handleMouseMove and immediate execution on handleMouseUp.
  • interaction.js: Added debounced sharpening in handleMouseMove and immediate execution on handleMouseUp.
  • ui.js: Added refreshBetaWordArt(el) trigger when dimensions change via ribbon inputs.
  • print-engine.js: Updated buildPrintDOM and printFullDocument with anisotropic scale calculation for 300 to 600 DPI print output.
  • sw.js: Added { cache: 'no-cache' } to fetch handler to prevent stale client caching.
  • core/pages.js: Integrated upgradeAllCanvasWordArt into renderPage().
  • core/history.js: Preserved WordArt type, text, and style attributes in serializeCurrentPage().
  • canvas/canvas.js: Added debounced upgradeAllCanvasWordArt on canvas zoom adjustments.
  • index.html: Synchronized all 77 script and style tags to ?v=5.2.2.

πŸ§ͺ Verification & Automated Testing

Test / Scenario Verification Metric Result Output Details
Initial Insertion Natural resolution vs element box Passed 1118px x 163px box -> 3348px x 487px PNG (2.99x supersampling)
Tall Box Stretch Stretch to 700px x 500px Passed Natural size: 2121px x 1494px (3.03x width, 2.99x height density)
Wide Banner Stretch Stretch to 1600px x 250px Passed Natural size: 4799px x 747px (3.00x width, 2.99x height density)
Print Spooler High-Res Baking Native print spooler .beta-wa-img Passed Automatically baked to 2976px x 750px high-resolution PNG
Visual Edge Sharpness Chromium 2x Retina screenshot Passed Razor-sharp letterforms, gradient bevels, and outlines with zero blur
Layout Stability Handle positions & bounding box Passed Zero layout shifts, detached handles, or reflow glitches
History & Page Serialization Serialize / restore page cycle Passed WordArt type, text, and style attributes 100% retained
Browser Runtime Stability Console logs & error listeners Passed 0 JavaScript errors or unhandled promise rejections

βœ… Checklist Completed

  • [x] Anisotropic Resolution Engine: Supported independent scaleX (up to 12.0x) and scaleY (up to 18.0x) in renderWordArtCanvasSync and generateWordArtPNG.
  • [x] Baseline Dimension Caching: Implemented baselineDimCache to synchronously determine unscaled dimensions.
  • [x] Multi-Dimensional In-Editor Upscaling: WordArt stretched tall (500px+) generates ~1500px to 2500px vertical resolution; WordArt stretched wide generates ~4800px horizontal resolution.
  • [x] Real-Time Drag Sharpening: Added 40ms debounced refreshBetaWordArt during handle dragging in system-patches.js, interaction-mouse.js, and interaction.js.
  • [x] UI Ribbon Integration: Hooked refreshBetaWordArt(el) into ui/ui.js dimension inputs.
  • [x] Hardware Contrast Hints: Added -webkit-optimize-contrast and high-quality to .beta-wa-img in style.css.
  • [x] Print Spooler & PDF Baking: Updated extensions/print-engine.js with matching anisotropic upscaling for 300-600 DPI output.
  • [x] Service Worker Cache Bypass: Added { cache: 'no-cache' } to sw.js network fetch handler.
  • [x] Version Lock: Kept version strictly at 5.2.2 across all files, cachebusters, and documentation.
  • [x] No Em Dashes: Zero em dashes used in all markdown documents and release notes.

πŸŽ‰ Version 5.2.2 - Open Publisher

Source: README.md, updated 2026-10-02