pqiv icon indicating copy to clipboard operation
pqiv copied to clipboard

Scaling for initial image is sometimes incorrect

Open iynaix opened this issue 1 year ago • 5 comments
trafficstars

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)

iynaix avatar Mar 13 '24 16:03 iynaix

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?

phillipberndt avatar Mar 13 '24 16:03 phillipberndt

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.

iynaix avatar Mar 13 '24 17:03 iynaix

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

phillipberndt avatar Mar 13 '24 17:03 phillipberndt

2.13.1

iynaix avatar Mar 13 '24 17:03 iynaix

Thanks!

phillipberndt avatar Mar 13 '24 18:03 phillipberndt