Page 1 of 1

Add No DPI Scaling as an option

Posted: Sun Jan 08, 2023 10:14 pm
by kiwichick
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.

Re: Add No DPI Scaling as an option

Posted: Sat Jan 14, 2023 12:15 am
by XnTriq
I support kiwichick's (and user0's) request.
user0 wrote: Tue Oct 18, 2022 8:30 amFor example, in Settings -> Interface:
- add "Enable High DPI Scaling" checkbox (enabled by default)
- add some dropbox with windows scale factors (get currect win value by default)
- etc
Workaround (Windows 10):
  1. Quit XnView MP.
  2. Copy qt.conf from your XnView MP installation folder to the desktop.
  3. Rename the original qt.conf to qt.conf.old.
  4. Open the new copy of qt.conf in Notepad.

    Code: Select all

    [Paths]
    Plugins = plugins
  5. Add the following lines:

    Code: Select all

    [Platforms]
    WindowsArguments = dpiawareness=0
  6. Save qt.conf and move it to your XnView MP installation folder.

    Code: Select all

    [Platforms]
    WindowsArguments = dpiawareness=0
    
    [Paths]
    Plugins = plugins
  7. Restart XnView MP.
In addition to that, you might want to enable Zoom on HiDPI screen: 1 image pixel equals 1 screen pixel in ToolsSettings…ViewView.

I'm attaching a test file:
p183782.png
p183782.png (548 Bytes) Viewed 1682 times

Re: Add No DPI Scaling as an option

Posted: Sun Jan 29, 2023 4:23 am
by kiwichick
XnTriq wrote: Sat Jan 14, 2023 12:15 am I support kiwichick's (and user0's) request.
user0 wrote: Tue Oct 18, 2022 8:30 amFor example, in Settings -> Interface:
- add "Enable High DPI Scaling" checkbox (enabled by default)
- add some dropbox with windows scale factors (get currect win value by default)
- etc
Workaround (Windows 10):
  1. Quit XnView MP.
  2. Copy qt.conf from your XnView MP installation folder to the desktop.
  3. Rename the original qt.conf to qt.conf.old.
  4. Open the new copy of qt.conf in Notepad.

    Code: Select all

    [Paths]
    Plugins = plugins
  5. Add the following lines:

    Code: Select all

    [Platforms]
    WindowsArguments = dpiawareness=0
  6. Save qt.conf and move it to your XnView MP installation folder.

    Code: Select all

    [Platforms]
    WindowsArguments = dpiawareness=0
    
    [Paths]
    Plugins = plugins
  7. Restart XnView MP.
In addition to that, you might want to enable Zoom on HiDPI screen: 1 image pixel equals 1 screen pixel in ToolsSettings…ViewView.

I'm attaching a test file:

p183782.png
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.

Re: Add No DPI Scaling as an option

Posted: Sun Jan 29, 2023 9:45 pm
by XnTriq
kiwichick wrote: Sun Jan 29, 2023 4:23 amThanks 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.
Yes, it definitely should. Is Large icons activated in ToolsSettings…InterfaceToolBar?

Re: Add No DPI Scaling as an option

Posted: Mon Jan 30, 2023 4:45 pm
by XnTriq
XnTriq wrote: Sun Jan 29, 2023 9:45 pm
kiwichick wrote: Sun Jan 29, 2023 4:23 amThanks 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.
Yes, it definitely should. Is Large icons activated in ToolsSettings…InterfaceToolBar?
I'm sorry, kiwichick! You are right. Changing dpiawareness=0 does not have the same effect as -noDpiScaling :-(

Re: Add No DPI Scaling as an option

Posted: Wed Feb 08, 2023 6:40 am
by kiwichick
XnTriq wrote: Mon Jan 30, 2023 4:45 pm I'm sorry, kiwichick! You are right. Changing dpiawareness=0 does not have the same effect as -noDpiScaling :-(
Thanks for confirming that for me. What a shame. Well, fingers crossed it will be added as a feature at some point 🤞