Page 1 of 1

Viewer - paste - improve pasting

Posted: Tue Sep 02, 2025 3:48 pm
by user0
XnViewMP 1.9.3
Windows11 (24H2), display resolution 3840x2160, dpi scale 150%


Viewer
there are few inconveniences with pasting:
- it's not possible to move pasted image around
- if no selection exists - image will be pasted to the top-left corner (0,0px), even if this area is not offscreen
- if selection exists - image will be pasted inside selection, following its ratio (can be altered with pasteKeepRatio=true)


Suggestion
viewer_add_paste_panel.png
viewer_add_paste_panel.png (9.52 KiB) Viewed 121 times
  • add paste panel
    same panel as 'Add watermark', plus
    - XY position controls
    - rotation controls (same as for crop panel)
  • improve behviour
    • placement & movement
      • keep pasted image selected, so its possible to move it around
        - pressing Enter executes Apply action
      • add snapping/sticking to the borders of target image
    • selection handling
      • if selection exists
        - resize source to fit selection (existing behavior, leave it as feature)
      • if no selection exists
        - paste source 'as is'
        - if top-left corner of the image is not visible - paste into top-left corner of viewport (like in mspaint)
    • size & canvas adjustment
      • (optional) add 'Increase canvas (if required)' checkbox
        if source is larger than target - increase target's canvas size (like in mspaint)







Related