Add No DPI Scaling as an option
Moderators: XnTriq, helmut, xnview
-
- Posts: 41
- Joined: Mon May 21, 2007 10:29 pm
Add No DPI Scaling as an option
Please add No DPI Scaling as an option rather than having to create a shortcut using the -noDpiScaling flag. Using the flag means the exe file can't be used and this can be problematic. For example, my file manager allows scripting so I can create a script where I select an image then click a button and the image folder will open in an image viewer (eg: XnView). But it will only work using the exe file so I can't do it for XnView if I wish to have no scaling.
-
- Moderator & Librarian
- Posts: 6256
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Add No DPI Scaling as an option
I support kiwichick's (and user0's) request.
I'm attaching a test file:
Workaround (Windows 10):
- Quit XnView MP.
- Copy qt.conf from your XnView MP installation folder to the desktop.
- Rename the original qt.conf to qt.conf.old.
- Open the new copy of qt.conf in Notepad.
Code: Select all
[Paths] Plugins = plugins
- Add the following lines:
Code: Select all
[Platforms] WindowsArguments = dpiawareness=0
- Save qt.conf and move it to your XnView MP installation folder.
Code: Select all
[Platforms] WindowsArguments = dpiawareness=0 [Paths] Plugins = plugins
- Restart XnView MP.
I'm attaching a test file:
You do not have the required permissions to view the files attached to this post.
-
- Posts: 41
- Joined: Mon May 21, 2007 10:29 pm
Re: Add No DPI Scaling as an option
Thanks XnTriq, I was hoping the workaround would make the toolbar button icons small (like the -noDpiScaling flag does) but unfortunately it doesn't. It is meant to? That's the only reason I use the flag.XnTriq wrote: ↑Sat Jan 14, 2023 12:15 am I support kiwichick's (and user0's) request.
Workaround (Windows 10):
In addition to that, you might want to enable Zoom on HiDPI screen: 1 image pixel equals 1 screen pixel in Tools → Settings… → View → View.
- Quit XnView MP.
- Copy qt.conf from your XnView MP installation folder to the desktop.
- Rename the original qt.conf to qt.conf.old.
- Open the new copy of qt.conf in Notepad.
Code: Select all
[Paths] Plugins = plugins
- Add the following lines:
Code: Select all
[Platforms] WindowsArguments = dpiawareness=0
- Save qt.conf and move it to your XnView MP installation folder.
Code: Select all
[Platforms] WindowsArguments = dpiawareness=0 [Paths] Plugins = plugins
- Restart XnView MP.
I'm attaching a test file:
p183782.png
-
- Moderator & Librarian
- Posts: 6256
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Add No DPI Scaling as an option
Yes, it definitely should. Is Large icons activated in Tools → Settings… → Interface → ToolBar?
-
- Moderator & Librarian
- Posts: 6256
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Add No DPI Scaling as an option
-
- Posts: 41
- Joined: Mon May 21, 2007 10:29 pm