Blurry / low resolution online

I used 512x512 pixels which is the original image size. On my screen .5x.5 height would be 540x540.

The question is whether the poor resolution is due to resizing on the fly or the units used. If pixels set to a different value (not 512x512) works better than height then you could set this on the fly using the following:

imageDimension = int(win.size[1]  * 0.5)

and then set the size to (imageDimension,imageDimension) “Each Repeat” in pixels

I would set the imageDimension in the End Routine of the first routine. The value is wrong in Begin Experiment because it gets set before the experiment hits Full Screen.

This definitely still seems to be an issue. It doesn’t appear to make a difference whether using pix or height, however I’ve noticed that the zoom settings in chrome (e.g., zooming out to 50%, 33% etc.) sharpen the image while maintating the size if set to height.

I’ve run a few tests on this on my laptop with a 4k monitor. It looks like there’s a mismatch between the window height/resolution in the browser versus the actual screen resolution, hence zooming out (50% zoom makes the screen height go from 1080 to 2160) sharpens the image:

100% zoom, left = text component and image set to height units. Right = Texbox component and image set to win.size[1]*0.5 pixels:

Same as above at 50% zoom:

I tested again with only height units and different original resolutions, left = 4000pix, right = 1000pix. So it seems the resizing/interpolation causes changes. However again when zooming out to 50% where the screen height matches the monitor resolution, the differences appear to be minimised/resolved:

100% zoom:

50% zoom:

Console was printing screen height to show the change while zooming in/out:

Not sure how feasible/realistic it would be to set everything in height units then have participants adjust their zoom settings based on their monitor resolution (e.g., 50% for 4k, 66% for 1440p)?

Hope the above is useful

1 Like

A bit of further context to the above, it seems in my case the culprit is windows scaling settings. On my 4k monitor these are set to 200% which causes psychopy to run at 1080p in browser, hence zooming out by 50% correcting it. If I set scaling settings to 100% the experiment runs at the full 4k

I am facing the very same issue. Manually changing the browser zoom or the monitor zoom setting is the only fix I am aware of, but - at least in my case - it’s not something I can or would ask online participants to do. Any way to set it automatically?

Same here. This seems to be a very common issue at the moment. A user made a new post about it yesterday, but no responses as yet: