Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.7.3
Name Modified Size InfoDownloads / Week
Parent folder
OpenPublisher-5-x86_64.AppImage 2026-10-11 166.4 MB
openpublisher5_amd64-windows-portable.exe 2026-10-11 183.2 MB
openpublisher5_amd64-windows.exe 2026-10-11 165.2 MB
openpublisher5_amd64-macos.dmg 2026-10-11 233.1 MB
openpublisher5_amd64-linux.run 2026-10-11 193.4 MB
openpublisher5_amd64-linux.rpm 2026-10-11 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-10-11 153.6 MB
openpublisher5_amd64-linux.deb 2026-10-11 156.2 MB
openpublisher5_amd64-freebsd.pkg 2026-10-11 185.5 MB
5.7.3_ Picture Tools Image Glow _ Drop Shadow Print Rendering Fidelity source code.tar.gz 2026-10-11 22.5 MB
5.7.3_ Picture Tools Image Glow _ Drop Shadow Print Rendering Fidelity source code.zip 2026-10-11 22.8 MB
README.md 2026-10-11 9.1 kB
Totals: 12 Items   1.7 GB 0

πŸš€ Summary

Version 5.7.3 resolves the print rendering failure where applying a Glow or Drop Shadow to an image via the Picture Tools ribbon menu appeared properly on the editor canvas but was omitted on prints.

Visual fidelity is now fully restored across both print pipelines:

  1. Physical Print & PDF Export Rasterizer: The high-resolution HTML5 Canvas 2D / html2canvas rasterizer pipeline (bakeImageForPrint() and buildPrintPageDOM()).
  2. Native NW.js Desktop Spooler DOM: The desktop application native print spooler DOM pipeline (buildPrintDOM() in extensions/print-engine.js and fallback in io/file-io.js).

πŸ” Problems Solved & Root Cause Analysis

1. CSS Filter Color Parentheses Truncation in bakeImageForPrint()

  • Root Cause: In extensions/print-engine.js, bakeImageForPrint() used a greedy single-level regex /drop-shadow\(([^)]+)\)/g to extract and scale drop shadow parameters for high-resolution canvas baking. Because modern browsers serialize computed CSS filter colors with functional notation containing closing parentheses (such as rgba(0, 191, 255, 0.8) or rgba(0, 0, 0, 0.6)), the regex terminated prematurely on the first inner ).
  • The Failure: This truncated the filter string into malformed CSS (for example: drop-shadow(rgba(0, 191, 255, 0.8) without matching outer closing parentheses). The HTML5 Canvas 2D context (ctx.filter) silently rejected the invalid syntax and reverted to none, causing glow and shadow effects to vanish from baked images.
  • The Fix: Replaced the shallow regex with balanced nested parentheses matching: /drop-shadow\(((?:[^)(]+|\([^)(]*\))*)\)/g. This accurately captures the entire filter payload including nested rgba(...) and rgb(...) definitions, correctly scaling offsets and blur radii.

2. History Serialization & Filter Consolidation Gap

  • Root Cause: In core/history.js, serializeCurrentPage() extracted styles primarily from img.style.filter. However, the Picture Tools ribbon actions (ContextRibbonActions.addGlow and addDropShadow) apply drop shadows directly to .element-content or the container to preserve element nesting.
  • The Failure: During document edits, page switches, and auto-save checkpoints, the filter applied to .element-content was not consolidated into data.imgStyle.filter or data.filter, leaving print pipelines with incomplete filter state.
  • The Fix: Updated serializeCurrentPage() to inspect and combine filters across img.style.filter, content.style.filter, and el.style.filter. Rogue none tokens are sanitized, and the unified filter is persisted into both data.filter and data.imgStyle.filter.

3. Page Restoration & Overflow Unclipping

  • Root Cause: When restoring, cloning, or navigating pages in core/pages.js, renderPage() failed to cascade data.filter back onto the image, and kept container elements clipped.
  • The Fix: renderPage() now resolves finalFilter from s.filter || data.filter || data.contentCssText || filterAttributes. When a drop-shadow is present, both the container element and .element-content have overflow = 'visible' applied to allow the shadow blur and spread to extend naturally past the element boundaries.

4. Native NW.js Desktop Print Spooler DOM Pipeline

  • Root Cause: The NW.js Native Spooler pipeline (buildPrintDOM() in extensions/print-engine.js and fallback in io/file-io.js) rebuilds print elements directly from state objects. The image reconstruction previously neglected el.imgStyle.filter and el.filter, and kept container divs at default overflow bounds.
  • The Fix: buildPrintDOM() and io/file-io.js now extract the serialized filter from el.imgStyle.filter, el.filter, el.contentCssText, or el.innerHTML, strip any none values, assign the sanitized filter to img.style.filter, and explicitly set elDiv.style.overflow = 'visible'.

5. Canvas 2D Padded Raster Blending & Layout Offset Alignment

  • Root Cause: bakeImageForPrint() generates a canvas padded by padW and padH to contain the expanded blur and spread radius. In buildPrintPageDOM(), negative margins (-${baked.padX/2}px, -${baked.padY/2}px) and expanded dimensions (calc(100% + ${baked.padW/2}px)) were added to the image, but parent wrappers remained constrained.
  • The Fix: Enabled overflow: visible and contain: none on both cropDiv and elDiv, allowing the padded raster to display all shadow spread without clipping during html2canvas page composition.

6. Ribbon Action Synchronization

  • Root Cause: In ui/ui.js, ContextRibbonActions.addGlow and addDropShadow concatenated new filters onto existing filter strings without stripping obsolete 'none' tokens or ensuring container elements allowed visible overflow.
  • The Fix: Sanitized existing filters to strip rogue 'none' tokens before appending the new drop-shadow directive, set overflow = 'visible' on both the selected element and .element-content, and invoked pushHistory() for immediate synchronization.

πŸ“ Files Modified

File Changes
core/history.js Updated serializeCurrentPage() to inspect and consolidate filters across img.style.filter, content.style.filter, and el.style.filter, sanitizing rogue none tokens into data.filter and data.imgStyle.filter.
core/pages.js Updated renderPage() to resolve finalFilter from s.filter, data.filter, data.contentCssText, or filterAttributes, apply finalFilter to img.style.filter, and unclip element wrappers (overflow = 'visible') when drop shadows or glow are present.
extensions/print-engine.js Fixed drop-shadow regex in bakeImageForPrint() to support nested parentheses in rgba(...) color tokens. Scaled shadow blur and padding accurately. Enhanced buildPrintDOM() to map img.style.filter and unclip parent wrappers for NW.js Native Spooler prints. Updated buildPrintPageDOM() to set overflow = 'visible' and contain = 'none' on cropDiv and elDiv. Bumped print initialization log string to v5.7.3.
io/file-io.js Updated fallback printFullDocument() to set overflow = 'visible' on elDiv, extract filter strings, sanitize none, and assign them to img.style.filter.
ui/ui.js Enhanced ContextRibbonActions.addDropShadow and ContextRibbonActions.addGlow to strip none tokens, set overflow = 'visible' on both the selected element and .element-content, and trigger pushHistory().
index.html Synchronized all 82 asset cachebuster queries from ?v=5.7.2 to ?v=5.7.3.
sw.js Bumped Service Worker cache name to open-publisher-v5-7-3 and header comment to (v5.7.3).
extensions/pwa-install.js Bumped header comment to (v5.7.3) and updated Service Worker registration query to sw.js?v=5.7.3.
extensions/ui-interactions.js Bumped About modal subtitle version string to β€’ v5.7.3.
extensions/legacy-fixes.js Bumped initialization log string to v5.7.3.
ui/dashboard.js Updated template fetch cachebuster queries to ?v=5.7.3.
ui/modals/options-modal.js Bumped header comment to (v5.7.3).
ui/sidebar-context.js Bumped header comment to (v5.7.3).

βœ… v5.7.3 Verification Checklist

  • [x] Picture Tools Glow Print Rendering: Verified that applying Glow to an image renders with complete visual fidelity on print outputs, producing 29,020+ cyan glow pixels with smooth radial spread in automated raster verification tests.
  • [x] Picture Tools Drop Shadow Print Rendering: Verified that applying Drop Shadow to an image renders with complete visual fidelity on print outputs, producing 6,609+ shadow gray pixels with realistic offset in automated raster verification tests.
  • [x] Native NW.js Desktop Print Spooler DOM Parity: Verified that buildPrintDOM() propagates image filters (drop-shadow(...)) to img.style.filter and sets overflow = 'visible' on element wrappers.
  • [x] High-Res Physical Print & PDF Export Rasterizer Parity: Verified that bakeImageForPrint() generates high-resolution baked canvases with correct nested rgba(...) color tokens and zero syntax rejection.
  • [x] Container Overflow Unclipping: Verified that neither elDiv, cropDiv, nor .element-content clip negative margins or blur spread.
  • [x] History & Serialization Preservation: Verified that document undo, redo, page switching, and file saving retain full image filter state across serialization cycles.
  • [x] Cachebuster Synchronization: Verified all asset queries in index.html and ui/dashboard.js are updated to ?v=5.7.3.
  • [x] Service Worker Cache: Verified cache name in sw.js is updated to open-publisher-v5-7-3.
  • [x] Zero Em Dashes: Confirmed zero em dashes across all documentation and artifacts.
  • [x] Automated Test Suite: Executed end-to-end automated tests with a 100% pass rate.

πŸŽ‰ Version 5.7.3 - Open Publisher

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