| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 5.1.1_ Unified Bulk Image Import Feature (browser only) source code.tar.gz | 2026-09-24 | 21.5 MB | |
| 5.1.1_ Unified Bulk Image Import Feature (browser only) source code.zip | 2026-09-24 | 21.7 MB | |
| README.md | 2026-09-24 | 4.5 kB | |
| 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 | |
| Totals: 12 Items | 1.7 GB | 0 | |
π Summary
please note this update will only work in the browser, client support will be added soon.
Version 5.1.1 adds a unified bulk image import system based on a feature request from GitHub user lucastucious in Issue [#1]. The user requested an efficient way to import batches of page images for localization editing without having to add them one by one manually.
To achieve the best usability and versatility across all workflows, we implemented a unified system: users can select multiple pictures through the toolbar or drag and drop a batch of images directly into the workspace. A dialog prompt allows choosing whether to place all images onto the current canvas or generate a dedicated new page for each picture automatically.
π‘ Origin & Background
- Requested By: lucastucious (Issue [#1])
- Use Case: Localization project importing batches of existing pages to edit in Open Publisher.
- Original Concept: Drag and drop multiple images into the sidebar to add one page per image.
- Enhanced Implementation: Expanded into a unified dual-entry controller with an interactive choice modal so users can choose between multi-page generation and single-page collage layout from both the file picker and canvas drag-and-drop.
π οΈ Enhancements & Features
1. Dual Entry Points with Unified Handling
- Toolbar Button: The existing "Insert Picture" button now allows selecting multiple images from the file browser.
- Drag and Drop: Users can drag and drop multiple image files from Windows Explorer, macOS Finder, or Linux file managers straight onto the canvas.
- Both entry paths now pass through the exact same centralized file controller (
window.handleBatchImageFiles), guaranteeing consistent behavior.
2. Smart Single vs. Batch Interception
- Single Image: If only 1 image is selected or dropped, it bypasses the modal completely and places directly on the canvas with zero extra clicks.
- Multiple Images: If more than 1 image is selected or dropped, the app displays a custom choice dialog with two clear routing options:
- Place all on current page: Imports all selected images onto the active page using a clean staggered offset cascade.
- Create a new page for each image: Generates a dedicated page for every picture, automatically sizing and centering each image to fit the page margins.
3. Architecture & Reliability Fixes
- Deterministic Async Pipeline: Replaced unpredictable asynchronous callbacks with a sequential
async/awaitloop using Promises. This ensures images and pages are created and rendered in strict numerical sequence without page scrambling. - Immediate Page Serialization: Each newly created page is serialized immediately after placing its image so that no image data is lost during page transitions.
- Single History Step: Grouped thumbnail generation and history recording into a single step at the end of the batch import so that one Undo (Ctrl+Z) reverts the entire import.
- Input Stale Reset: The hidden file input resets its value immediately after processing so the user can import the same files again without needing to reload.
β Checklist Completed
- [x]
index.html: Addedmultipleattribute to#img-uploadfile input; synchronized asset cachebusters to?v=5.1.1. - [x]
extensions/smart-images.js: ImplementedhandleBatchImageFiles,showBatchImageChoiceModal,executeBatchImageImport,importBatchOnCurrentPage, andimportBatchOnNewPageswith sequential async Promises. - [x]
extensions/ui-interactions.js: Updated drag-and-drop handler to delegate image batches towindow.handleBatchImageFiles. - [x]
elements/image/image.js: Updated change event listener to support multiple files and delegate to the centralized batch controller. - [x]
style.css: Added light and dark mode styles for.batch-import-cardmodal options with hover states. - [x]
elements/templates/templates.js: Synchronized template runtime fetch query parameters to?v=5.1.1.
π Version 5.1.1 - Open Publisher