Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.8.4
Name Modified Size InfoDownloads / Week
Parent folder
OpenPublisher5-i386-windowsXP.exe 2026-10-15 56.5 MB
openpublisher5_amd64-windows-portable.exe 2026-10-15 183.2 MB
openpublisher5_amd64-windows.exe 2026-10-15 165.2 MB
openpublisher5_amd64-macos.dmg 2026-10-15 233.1 MB
openpublisher5_amd64-linux.run 2026-10-15 193.4 MB
5.8.4_ Image Drag-Through Mirroring _ Preview Fidelity source code.tar.gz 2026-10-15 22.5 MB
5.8.4_ Image Drag-Through Mirroring _ Preview Fidelity source code.zip 2026-10-15 22.8 MB
README.md 2026-10-15 15.5 kB
openpublisher5_amd64-linux.rpm 2026-10-15 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-10-15 153.6 MB
openpublisher5_amd64-linux.deb 2026-10-15 156.2 MB
openpublisher5_amd64-linux.AppImage 2026-10-15 166.4 MB
openpublisher5_amd64-freebsd.pkg 2026-10-15 185.5 MB
Totals: 13 Items   1.8 GB 0

πŸš€ Summary

Version 5.8.4 restores and enhances the intuitive drag-through resize mirroring feature in OpenPublisher. Users can once again grab an image or shape by any resize handle, drag it completely through its own boundaries, and create a mirror effect up, down, left, and right without damaging aspect-ratio locking, rotation geometry, table bounds, or crop modes:

  1. Drag-Through Resize Mirroring Restoration: Restored the capability to grab any resize handle on an image and drag it inward past its opposing edge to invert and mirror the graphic. Dragging through horizontally toggles horizontal reflection (data-scaleX: -1), while dragging through vertically toggles vertical reflection (data-scaleY: -1).
  2. Multi-Directional Four-Way Mirroring: Grabbing an East handle and pulling it left past the West boundary inverts the horizontal scale, while dragging the West handle right past the East boundary inverts it symmetrically. Grabbing a South handle and pulling it up past the North boundary inverts vertical scale, and pulling North down past South inverts it down. Corner handles (nw, ne, se, sw) seamlessly mirror across one or both axes simultaneously.
  3. Continuous Reversible Drag Tracking: The drag engine maintains real-time continuous tracking throughout the entire mouse gesture. Users can drag through the inversion point to mirror, then drag back across zero to un-mirror in the same drag operation without coordinate jitter or sudden displacement jumps.
  4. Thumbnail Preview Stretch & Aspect Ratio Fidelity: Fixed an issue where non-uniform image stretching (e.g., stretching an image tall or wide) was not reflected in the sidebar page preview. Previews previously forced object-fit: contain and allowed global mutation observers to override element styles, letterboxing the graphic back to its un-stretched ratio. Previews now respect object-fit: fill, matching the canvas and print engine so stretched heights and widths are accurately visible.
  5. Live Thumbnail Preview Mirroring Synchronization: Fixed page preview thumbnail rendering both during real-time dragging and upon mouse release. By establishing transform-origin: center center across core/pages.js, extensions/legacy-fixes.js, and canvas/canvas.js, thumbnails mirror in-place around their own center instead of inverting around top-left (0, 0) into negative coordinate space where overflow: hidden previously clipped and hid them. Real-time drag updates also continuously synchronize child image offsets.
  6. Arrow Exemption Safeguard: Arrows (smart-arrow, svg.smart-arrow-svg, etc.) are explicitly exempted from drag-through scale inversion (!isArrow). This prevents arrow head lengths, stroke geometries, and point sizing from becoming distorted when dragged down to small dimensions. Arrows enforce a clean 10px minimum width/height boundary.
  7. Rotation-Aware Pivot & Anchor Geometry: Enhanced the rotation-aware basis engine (u, v unit vectors) to calculate local center offsets and fixed-edge anchors. When dragging an element past its boundary at arbitrary rotation angles (e.g., 30 deg, 45 deg, 90 deg), the opposite edge remains strictly pinned in place while the active handle extends into mirrored space.
  8. Aspect Ratio Lock Compatibility: Preserved aspect-ratio lock behavior when holding Shift or when data-aspect-lock="true". The engine computes the dominant scale magnitude while preserving signed coordinate direction, allowing proportional scaling and mirroring simultaneously.
  9. Table & Crop Mode Isolation Safeguards: Explicitly protected table elements and image crop mode from accidental inversion. Tables enforce strict minimum width/height constraints cloned from their physical DOM content, and crop framing windows retain positive boundaries.
  10. Full Codebase Cache & Version Synchronization: Synchronized all 83 asset cachebusters in index.html to ?v=5.8.4, updated the Service Worker cache namespace to open-publisher-v5-8-4, and bumped all subsystem headers, logs, and dialog subtitles.

πŸ” Architecture & Technical Implementation

1. Root Cause Analysis: Minimum Bounds Clamping

  • The Issue: In previous revisions, universal minimum dimension clamping (rawW = Math.max(minW, ...), if (rawW < minW) rawW = minW) was applied unconditionally to all elements to protect layout stability.
  • The Failure: Because minW and minH were clamped to at least 10px, rawW and rawH were physically prevented from ever reaching zero or negative coordinates. Consequently, dragging an image handle through itself hit an invisible wall at 10px, preventing the scale inversion logic from triggering.
  • The Solution: Introduced a canMirror = !state.cropMode && !isTable && !isArrow check. Elements permitted to mirror (images, shapes, and graphic content) allow rawW and rawH to become negative during dragging. Physical styling dimensions are assigned via finalW = Math.max(minW, Math.abs(rawW)) and finalH = Math.max(minH, Math.abs(rawH)), while negative signed dimensions invert scaleX and scaleY.

2. Preview Stretch Elimination & Aspect Ratio Preservation Fix

  • The Issue: When dragging a handle to stretch an image taller or wider, the canvas and print engine stretched the image as expected, but the sidebar thumbnail preview always preserved the original image aspect ratio, showing black/empty letterboxed bars instead of the stretched image.
  • The Root Cause: Three separate constraints forced object-fit: contain on thumbnail images:
  • In core/pages.js (line 937), thumbImgCss had object-fit: ${(s.objectFit === 'fill') ? 'fill' : (s.objectFit || 'contain')};. Because object-fit: fill on the canvas is applied via the stylesheet rule .element-content img, s.objectFit was not an inline style attribute and evaluated to empty "", causing the fallback to 'contain'.
  • In style.css (line 903), .page-thumb img had object-fit: contain;, which matched all inner element images inside .page-thumb.
  • In extensions/system-patches.js and ui/ui-interactions.js, a MutationObserver on thumbNode.querySelectorAll('canvas, img') forced el.style.objectFit = "contain" on every image inside the thumbnail whenever the DOM changed.
  • The Solution:
  • Updated core/pages.js line 937 so thumbImgCss defaults to object-fit: ${(s.objectFit === 'contain') ? 'contain' : (s.objectFit || 'fill')};, defaulting to 'fill' like the canvas and print engines.
  • Updated core/history.js line 223 so serializeCurrentPage checks computed styles (window.getComputedStyle(img).objectFit) to persist 'fill'.
  • In style.css line 903, scoped .page-thumb > img, .page-thumb > canvas to direct children only, and added .pub-thumb-scalebox img { object-fit: fill; }.
  • In extensions/system-patches.js and ui/ui-interactions.js, added if (el.closest('.pub-thumb-element')) return; inside thumbObserver to prevent overriding thumbnail page elements.
  • In extensions/legacy-fixes.js, synchronized tImg.style.objectFit during real-time dragging.

3. Thumbnail Preview Negative Coordinate Mirroring Fix

  • The Issue: When dragging an image past its boundary, the canvas properly mirrored the image around its center, but the thumbnail in the sidebar disappeared or broke as soon as it crossed zero into negative space.
  • The Failure: In core/pages.js, the thumbnail element scaleBox had hardcoded transform-origin: top left;. When scale(-1, 1) or scale(1, -1) was applied, the thumbnail contents flipped across (0, 0) into negative x or y coordinates ([-width, 0]), where scaleBox's overflow: hidden clipped and concealed the entire image.
  • The Solution: Updated transform-origin to center center in core/pages.js (line 931), canvas/canvas.js (lines 1396, 1441), and extensions/print-engine.js (lines 201, 1448). In extensions/legacy-fixes.js (syncRealtimeThumbnailDrag), enforced thumbScaleBox.style.transformOrigin = 'center center' and added continuous synchronization for child img dimensions, ensuring the sidebar preview matches the main canvas in real-time throughout the entire drag.

4. Smart Arrow Exemption

  • The Issue: Smart arrows contain SVG paths with dynamically calculated tip markers and head lengths (data-arrow-head-px). When mirrored via negative scale transforms, arrow heads inverted backward and distorted the path geometry.
  • The Solution: Added an isArrow check across canvas/interaction-mouse.js, extensions/smart-images.js, extensions/system-patches.js, and canvas/interaction.js: javascript const isArrow = !!(state.selectedEl && ( state.selectedEl.getAttribute('data-type') === 'smart-arrow' || state.selectedEl.getAttribute('data-type') === 'arrow' || state.selectedEl.querySelector('.smart-arrow-svg') || state.selectedEl.querySelector('.smart-arrow-baked-img') || state.selectedEl.hasAttribute('data-arrow-style') )); const canMirror = !state.cropMode && !isTable && !isArrow; Arrows are clamped to minW (10px) and minH (10px), preventing inversion and preserving tip geometry.

5. Rotational Local Coordinate Center & Anchor Mathematics

  • In the rotation basis system with basis vectors $\vec{u}$ and $\vec{v}$:
  • When dragging an East handle (e), the West edge at local $-W_0 / 2$ is anchored. The new center shift is $\Delta x_{local} = \Delta W / 2$, which remains exact for both positive and negative $\Delta W$.
  • When dragging a West handle (w), the East edge at local $+W_0 / 2$ is anchored. The new center shift is $\Delta x_{local} = -\Delta W / 2$.
  • When dragging a South handle (s), the North edge at local $-H_0 / 2$ is anchored. The new center shift is $\Delta y_{local} = \Delta H / 2$.
  • When dragging a North handle (n), the South edge at local $+H_0 / 2$ is anchored. The new center shift is $\Delta y_{local} = -\Delta H / 2$.
  • The new bounding coordinates are computed as newL = newCx - finalW / 2 and newT = newCy - finalH / 2, ensuring the element box is positioned symmetrically around the rotated pivot point.

πŸ“ Files Modified in 5.8.4

File Changes
core/pages.js Updated transform-origin on .pub-thumb-scalebox to center center. Updated thumbImgCss so object-fit defaults to fill instead of contain, rendering stretched image widths and heights properly in thumbnails.
core/history.js Updated serializeCurrentPage to capture computed objectFit if not set inline, ensuring fill is retained in serialized page data.
style.css Scoped .page-thumb img rule to direct children (.page-thumb > img, .page-thumb > canvas) and added .pub-thumb-scalebox img { object-fit: fill; }. Bumped marquee box CSS comment to (v5.8.4).
extensions/system-patches.js Exempted .pub-thumb-element images from thumbObserver contain overrides. Added isArrow check to exempt arrows and synchronized mirror-aware resize calculations in handleMouseMove.
ui/ui-interactions.js Exempted .pub-thumb-element images from thumbObserver contain overrides. Bumped header comment, startup console log, and About dialog subtitle to v5.8.4.
extensions/legacy-fixes.js Enforced transformOrigin: center center on thumbnail scaleboxes, synchronized objectFit, and synced child img styling during syncRealtimeThumbnailDrag. Bumped engine initialization log to v5.8.4.
canvas/interaction-mouse.js Added isArrow check to exempt arrows from mirroring. Updated handleMouseDown to detect initial scale and handleMouseMove to calculate center displacements and invert scale factors.
extensions/smart-images.js Added isArrow check to exempt arrows and synchronized mirror-aware resize calculations in handleMouseMove.
canvas/interaction.js Added isTable and isArrow checks to exempt tables and arrows from mirroring, and updated unrotated 2D resize mirroring anchors.
canvas/canvas.js Updated transform-origin on thumbnail scaleBox elements from top left to center center.
ui/ui.js Synchronized ContextRibbonActions.flipScale to update data-scaleX/data-scaleY attributes and .element-content transforms cleanly.
extensions/print-engine.js Updated transform-origin: center center for print rendering of scaled/mirrored content, and bumped initialization log to v5.8.4.
extensions/pwa-install.js Bumped header comment to (v5.8.4) and Service Worker registration query to sw.js?v=5.8.4.
tools/proofing/spellcheck-engine.js Bumped proofing header comment to (v5.8.4).
ui/dashboard.js Updated template fetch cachebuster queries to ?v=5.8.4.
ui/sidebar-context.js Bumped sidebar context header comment to (v5.8.4).
ui/modals/card-sheet-modal.js Bumped card sheet modal header comment to (v5.8.4).
ui/modals/options-modal.js Bumped options modal header comment to (v5.8.4).
sw.js Bumped Service Worker cache namespace to open-publisher-v5-8-4 and header to (v5.8.4).
index.html Synchronized all 83 asset cachebusters to ?v=5.8.4.

wrapper.html was not modified.


βœ… v5.8.4 Verification Checklist

  • [x] Horizontal Drag-Through Mirroring: Verified dragging East and West handles across opposite edges mirrors images horizontally.
  • [x] Vertical Drag-Through Mirroring: Verified dragging North and South handles across opposite edges mirrors images vertically.
  • [x] Corner Dual-Axis Mirroring: Verified dragging corner handles across opposing boundaries mirrors horizontally, vertically, or diagonally.
  • [x] Preview Image Stretch Fidelity: Verified non-uniform stretched images (tall or wide) accurately display their stretched dimensions in the sidebar preview rather than letterboxing to the original ratio.
  • [x] Real-Time Preview Thumbnail Mirroring: Verified page preview thumbnails in the sidebar mirror smoothly in real-time around their center without disappearing into negative space.
  • [x] Arrow Exemption Safeguard: Verified arrows stop at minimum dimensions (10px) and do not invert, protecting arrow tip sizing and path geometry.
  • [x] Rotation-Aware Anchor Geometry: Verified dragged handles maintain fixed opposing edges when rotated at arbitrary angles.
  • [x] Continuous Reversibility: Verified dragging back and forth across the zero threshold flips and un-flips smoothly.
  • [x] Aspect Ratio Lock Preserved: Verified Shift-key and aspect-ratio-locked resizing properly mirrors while maintaining proportions.
  • [x] Table & Crop Mode Protection: Verified tables and crop mode are protected from inversion and enforce minimum bounds.
  • [x] Thumbnail & Print Engine Fidelity: Verified thumbnails and print sandbox render mirrored images centered within their bounding boxes.
  • [x] Cache Invalidation & SW Versioning: Verified all 83 asset queries in index.html reference ?v=5.8.4, sw.js cache name is open-publisher-v5-8-4, and all subsystem logs and headers are updated.

OP-Mirror


πŸŽ‰ Version 5.8.4 - Open Publisher

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