Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaling for initial image is sometimes incorrect #233

Open
iynaix opened this issue Mar 13, 2024 · 5 comments
Open

Scaling for initial image is sometimes incorrect #233

iynaix opened this issue Mar 13, 2024 · 5 comments

Comments

@iynaix
Copy link
Contributor

iynaix commented Mar 13, 2024

The majority of the time when pqiv is opened, the initial image is not resized to fit within window but is instead cropped. The issue disappears when I navigate to any other image. Is there an obvious setting I'm missing?

My pqivrc:

[options]
box-colors=#FFFFFF:#000000
disable-backends=archive,archive_cbx,libav,poppler,spectre,wand
hide-info-box=1
max-depth=1
window-position=off

[actions]
# hide cursor after 1 second inactivity
set_cursor_auto_hide(1)
# maintain window size
toggle_scale_mode(5)
@phillipberndt
Copy link
Owner

Which version, X11 or Wayland, and which WM?

Is the issue specific to the initial setting of the scale mode via actions or does this always happen?

@iynaix
Copy link
Contributor Author

iynaix commented Mar 13, 2024

Sorry for not specifying the WM, but it is hyprland with wayland.

It happens quite frequently when I do hyprctl dispatch exec "[float;size 1032 432;center] pqiv ~/Pictures/Wallpapers". Those dimensions are 30% the size of my display (3440x1440 native)

After some testing, I couldn't get the issue to occur if the window was larger, it only happens when a smaller window is spawned, both floating and non floating.

Tbh, I'm not really sure how the default scaling is supposed to work, I would just like it to fit within the window like imv does.

@phillipberndt
Copy link
Owner

And is that master / 2.13 or earlier? I've made some changes to how Wayland is handled lately.

@iynaix
Copy link
Contributor Author

iynaix commented Mar 13, 2024

2.13.1

@phillipberndt
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants