# Converting pixels to cm?

**URL:** <https://discourse.psychopy.org/t/converting-pixels-to-cm/41434>\
**Category:** Online experiments\
**Created:** [September 17, 2024, 11:10am UTC](https://discourse.psychopy.org/t/converting-pixels-to-cm/41434 "2024-09-17T11:10:06Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 17, 2024, 2:28pm UTC](https://discourse.psychopy.org/t/converting-pixels-to-cm/41434/8 "2024-09-17T14:28:20Z")

</div>

I wouldn’t recommend assuming the size of the monitor in pixels. Have you tried the screen scale demo?

[https://run.pavlovia.org/Wake/screenscale/](https://run.pavlovia.org/Wake/screenscale/)

Here are some threads which might help.

> [@How to use screen scale routine](https://discourse.psychopy.org/t/how-to-use-screen-scale-routine/21904):
>
> Hello, I’m trying to build an online experiment and I need to adjust the resolution for every participant individually. I’m using screen scale routine (this one: [Pavlovia](https://pavlovia.org/Wake/screenscale)), but the resolution doesn’t seem to change after this routine. I’ve tried inserting code component in other routine which contains an image (the code is: expInfo[‘Window\_size’] = [x\_scale, y\_scale]), but the image size is not changing. I suppose I’m doing something wrong, how could this be solved?

> [@Consistent image size across screens](https://discourse.psychopy.org/t/consistent-image-size-across-screens/12517):
>
> URL of experiment: [https://run.pavlovia.org/aelreym/concurrent\_schedule\_task/html](https://run.pavlovia.org/aelreym/concurrent_schedule_task/html) Description of the problem: In the routine “cigarette length” I ask participants to estimate the real length of a cigarette by clicking on the appropriate image. So I have images of cigarettes with the real length of cigarettes and some deviations. In my builder experiment I have set the units of my images to “cm” but this doesn’t work online. I have changed it to “from exp settings” and this does adapt the size…

> [@Way to get monitor information like size when running exp online?](https://discourse.psychopy.org/t/way-to-get-monitor-information-like-size-when-running-exp-online/12875):
>
> Description of the problem: I am trying to figure out how to get the monitor size of each participant that takes my study online and store it as a variable in my excel data files. How do I do this?

---

_[View the full topic](https://discourse.psychopy.org/t/converting-pixels-to-cm/41434)._
