| Name | Modified | Size | Downloads / 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
- 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'sonclickhandler. - 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. - DOM Thrashing in Multi-Page Loop:
importBatchOnNewPagespreviously invokedaddNewPage()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.stringifyover 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; }instyle.cssso that clicks anywhere on the card surface hit the parent card directly. - Added explicit IDs (
#batch-opt-current-pageand#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-copyicon withfa-file-circle-plusto accurately communicate new page creation and avoid clipboard confusion.
2. In-Memory Batch Page Generation
- Overhauled
importBatchOnNewPagesinextensions/smart-images.js. - Instead of repeatedly calling
addNewPage()against the live DOM, pages are now constructed directly in memory withinstate.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.1to?v=5.1.2acrossindex.htmlandelements/templates/templates.js.
β Checklist Completed
- [x]
style.css: Added.batch-import-cardpointer-events shields, active states, and keyboard focus rings. - [x]
extensions/smart-images.js: Replacedfa-copywithfa-file-circle-plus; added programmatic click, pointerdown, and keydown listeners; overhauledimportBatchOnNewPagesto 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