-
-
Notifications
You must be signed in to change notification settings - Fork 515
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
Image is displayed squashed depending on the window size (version 9.0.8 only) #1762
Comments
I'm unable to reproduce this (Windows 11). I will try to check it on Windows 10 |
I tried my best to reproduce the issue on VirtualBox but no luck. Recording.2023-12-13.192818.mp4 |
I've reproduced the problem in a virtual machine. Here is a video of it. Furthermore, I've discovered that just resizing the window alone triggers the problem. Here are a few examples: Sample 1This image is okay: This image is horizontally squashed: This image is vertically squashed: |
No. I have not changed that settings. And in the virtual machine, I have changed no setting at all. If it helps, my display is a 1080p (1920x1080) at 166 PPI. |
I'm seeing the same issues |
@LazyBoot Hello. I'm trying to find out why we can reproduce it but d2phap can't. Would you mind telling us what is your screen resolution and PPI? |
I'm not sure how to find my PPI, but resolution is 3440z1440 (100Hz) running at 100% scaling in windows. |
Thanks a lot. I used this web utility to obtain my PPI: https://dpi.lv/ |
ok, I have 110 PPI according to that (34" ultrawide screen) Also, in case it matters for the bug reproduction, I am running a multi-monitor setup. (2nd is just a 1080p one though.) |
I have the same issue and I also have a 1080p screen with 166PPI, if that helps. 👍 I'm also on the latest version of Windows 10. |
My PPI is 341, 250%. I tried changing to image interpolation for 100% scale to |
I am little bit drunk right now, but it seems to be ok now for me :) |
It looks better, but still scaling images needlessly. This 640x480 test image is still being resized to 640x481. |
It looks good. |
I probably found the root issue. It happened when the drawing location (X, Y) is float number, Direct2D somehow scaled it incorrectly with 1 extra pixel (as reported #1762 (comment)). For example with image 400x400 px:
So I reverted back to use |
Not completely valid. If the image a bit larger then the monitor, the pixels will deviate. It's obvious on low resolution monitors. |
It will be scaled according to your Image Interpolation setting. |
It is 100% scaling. |
@LoliMilkQ I think I didn't really get your comment. Can you send a full screenshot of IG window? |
|
Images where I had issues are ok now. |
Published ImageGlass 9.0.9.1230. @LoliMilkQ if your issue still persists, I will reopen your ticket #1789 |
This is still an issue on 9.1.8.723 with Windows 10 19045.4651. It seems to be highly dependent upon the window size and the position of the image within the window. The window size in my sample videos is 479×553. I subsampled the video chroma information to 4:2:0 for compatibility reasons, but hopefully you can still see that the image isn't represented correctly after zooming out and back in. The easiest way to workaround the issue for now seems to be to drag the image to either the left or right edge; doing that seems to correctly align everything. 1.mp42.mp4The test image I'm using can be found here: https://www.rtings.com/tv/learn/chroma-subsampling |
System information:
To Reproduce
Steps to reproduce the behavior:
Actual behavior:
The image could appear horizontally or vertically squashed depending on the size of the window. Not every size squashes the image. But some sizes do. (Edited 2023-12-24)
Expected behavior:
The image must appear as is.
Screenshots:
Screenshot:
Sample image:
Sample image in ZIP format (to prevent accidental delivery error):
Sample image.zip
Additional context:
Thanks in advance.
The text was updated successfully, but these errors were encountered: