Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.1.2
Name Modified Size InfoDownloads / Week
Parent folder
openpublisher5_amd64-windows-portable.exe 2026-09-24 183.2 MB
openpublisher5_amd64-windows.exe 2026-09-24 165.2 MB
openpublisher5_amd64-macos.dmg 2026-09-24 233.1 MB
openpublisher5_amd64-linux.run 2026-09-24 193.4 MB
openpublisher5_amd64-linux.rpm 2026-09-24 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-09-24 153.6 MB
openpublisher5_amd64-linux.deb 2026-09-24 156.2 MB
openpublisher5_amd64-linux.AppImage 2026-09-24 176.6 MB
openpublisher5_amd64-freebsd.pkg 2026-09-24 185.5 MB
5.1.2_ Desktop Client Multi-Page Batch Import Fix source code.tar.gz 2026-09-24 21.5 MB
5.1.2_ Desktop Client Multi-Page Batch Import Fix source code.zip 2026-09-24 21.7 MB
README.md 2026-09-24 3.4 kB
Totals: 12 Items   1.7 GB 0

πŸš€ Summary

Version 5.1.2 resolves an issue where clicking the "Create a new page for each image" option in the batch image import modal did not trigger via the desktop apps. In addition, page generation for bulk imports has been optimized to construct pages directly in memory, eliminating DOM layout thrashing, race conditions, and performance bottlenecks.


πŸ” Root Cause Analysis

  1. Sub-Element Hit-Testing in WebViews: Inside the batch modal cards, nested icons, headers, and descriptions did not have pointer-events: none. In NW.js webview environments, clicks landing directly on inner text nodes or SVG/font-awesome icon elements were captured without bubbling cleanly to the parent container's onclick handler.
  2. Icon Ambiguity: The second option previously used the font-awesome icon fa-copy, which visually resembled a clipboard copy action and led to false impressions of clipboard hijacking.
  3. DOM Thrashing in Multi-Page Loop: importBatchOnNewPages previously invoked addNewPage() in a tight loop across the live DOM. Each call triggered full-page re-renders, layout recalculations, and asynchronous thumbnail generation and history serializations (JSON.stringify over large base64 image strings). Under NW.js, this heavy loop caused CPU starvation and dropped asynchronous events.

πŸ› οΈ Enhancements & Fixes

1. Robust Modal Card Hit-Testing & Multi-Event Handlers

  • Added .batch-import-card * { pointer-events: none !important; } in style.css so that clicks anywhere on the card surface hit the parent card directly.
  • Added explicit IDs (#batch-opt-current-page and #batch-opt-new-pages) and accessibility roles (role="button", tabindex="0").
  • Attached programmatic click, pointerdown, and keyboard (Enter / Space) listeners to ensure clicks are captured reliably across all webview engines and input devices.
  • Replaced the fa-copy icon with fa-file-circle-plus to accurately communicate new page creation and avoid clipboard confusion.

2. In-Memory Batch Page Generation

  • Overhauled importBatchOnNewPages in extensions/smart-images.js.
  • Instead of repeatedly calling addNewPage() against the live DOM, pages are now constructed directly in memory within state.pages.
  • Each new page inherits the document's width, height, margins, header, and footer cleanly.
  • Page rendering, sidebar updates, thumbnail generation, and history recording occur once at the end of the batch process.
  • Result: Instant, glitch-free batch imports even when loading 20+ large high-resolution images.

3. Cachebuster Synchronization

  • Updated all script, stylesheet, and template runtime cachebusters from ?v=5.1.1 to ?v=5.1.2 across index.html and elements/templates/templates.js.

βœ… Checklist Completed

  • [x] style.css: Added .batch-import-card pointer-events shields, active states, and keyboard focus rings.
  • [x] extensions/smart-images.js: Replaced fa-copy with fa-file-circle-plus; added programmatic click, pointerdown, and keydown listeners; overhauled importBatchOnNewPages to build pages in memory.
  • [x] elements/templates/templates.js: Updated template fetch cachebuster to ?v=5.1.2.
  • [x] index.html: Synchronized all asset cachebusters to ?v=5.1.2.

πŸŽ‰ Version 5.1.2 - Open Publisher

Source: README.md, updated 2026-09-24