Keep ratio on paste

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
User avatar
Innarel
Posts: 11
Joined: Mon Oct 28, 2019 12:16 pm

Keep ratio on paste

Post by Innarel »

Can you make it possible to have an option in settings to keep the clipboard image ratio when pasteing it over an open image, inside a selected area?

Thx.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Keep ratio on paste

Post by xnview »

yes will be better
Pierre.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Keep ratio on paste

Post by xnview »

See issue for current status and some details.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Keep ratio on paste

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.96. Please check and confirm the bug fix here.
Pierre.
User avatar
Sirio
Posts: 128
Joined: Tue Oct 13, 2015 3:22 pm

Re: Keep ratio on paste

Post by Sirio »

Hello I just installed the MP 0.96, I don't see any difference.
I mean, I have copied an image in the clipboard, before to paste it on another image, I draw a selection area in order to paste the picture in a precise place and not in the upper left corner. The pasted picture still to fit inside the selection area without keeping it's original aspect ratio, but following the shape of this rectangle.
I don't found any settings in the options.
Sirio
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Keep ratio on paste

Post by xnview »

you need to change in xnview.ini
Pierre.
User avatar
Sirio
Posts: 128
Joined: Tue Oct 13, 2015 3:22 pm

Re: Keep ratio on paste

Post by Sirio »

Perfect, it works.
In detail: open an explorer, go to %appdata%\XnViewMP, right click on the xnview.ini file, then Edit.
Search the line pasteKeepRatio in the chapter [Viewer], and change false in true.

Code: Select all

pasteKeepRatio=true
Sirio
User avatar
Innarel
Posts: 11
Joined: Mon Oct 28, 2019 12:16 pm

Re: Keep ratio on paste

Post by Innarel »

Ok,

It works like a charm.

But, still, it lacks a checkbox in the configuration menu to set this up.
Editing ini file is not the better way to change settings, at all.

Can you make it more accessible?

Cheers. :)
Post Reply