Viewer - paste - improve pasting

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, xnview

Post Reply
User avatar
user0
XnThusiast
Posts: 2560
Joined: Sat May 09, 2015 9:37 am

Viewer - paste - improve pasting

Post 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_toolbar.png
viewer_add_paste_toolbar.png (5.5 KiB) Viewed 62 times
  • add paste toolbar
    similar to 'Add watermark' toolbar, w or w/o labels (XY, WH)
    • transformation
      • add filter combobox (like in Photoshop, Krita)
      • add Width, Height fields and link button between them (to change ratio)
        resizing behavior via points dragging (like in Krita):
        • no modifier
          corner points - do not lock ratio
          side points - do not lock ratio
        • with Shift
          corner points - lock ratio (resize proportionally, anchor in opposite point)
          side points - lock ratio (resize proportionally, anchor in opposite point)
    • placement & movement
      • add XY position controls
      • keep pasted image selected, so its possible to move it around
      • Apply by clicking LMB outside of selection(like in mspaint)
      • 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'
        - paste into the center or top-left corner of viewport (like in mspaint)

    • (optional) size & canvas adjustment
      • add 'Increase canvas (if required)' checkbox
        if source is larger than target - increase target's canvas size (like in mspaint)





Example
  • Photoshop, ACDSee, Krita - transform toolbar
    other_apps_paste_transform_toolbar.png
    other_apps_paste_transform_toolbar.png (22.38 KiB) Viewed 33 times






Related
roto
Posts: 1
Joined: Wed Oct 08, 2025 11:19 am

Re: Viewer - paste - improve pasting

Post by roto »

In the paste toolbar, can you please provide a key for "Apply". Doesn't have to be shortcut-able, simply pressing Enter would do, since that opens file browser by default which makes little sense in most cases of a paste that still needs to be applied.

The workflow this is a problem for is: you fast ALT-TAB switch between XnView MP and whatever app you're screenshotting (eg a fullscreen Youtube), to create multiple new screenshots with CTRL-SHIFT-V, and then Save All at the end, but often you find a new better / more suitable screenshot candidate than the one you just took 5s ago, and you just want to CTRL-V to overwrite it . But when you do, you have to move your mouse to click a small "Apply" button instead of keep ALT-TAB-ing and only having to either CTRL-SHIFT-V or CTRL-V at high speed. Which is how it worked in XnView.

In fact in an ideal world the key for Apply would be V not ENTER, so that you could CTRL-V V fast.

Also, it would help if a new CTRL-V paste automatically applied the previously un-Applied one, for the workflow I described.

Also, when you Save a file without having pressed Apply yet, it save the image underneath, ignoring the paste, which is counterintuitive.
User avatar
y0y0gigi
Posts: 7
Joined: Tue Jan 30, 2007 10:33 pm
Location: Bordeaux

Re: Viewer - paste - improve pasting

Post by y0y0gigi »

The trouble for me is actually this new paste is great but it doesn't care about the save position and size of the copy, it will be great if it can be fixed in the next version :)
('-' ) (._. ) ( '-') -=yOyOGiGi=- ( ._.) ('-' ) (._. ) ( '-')
Post Reply