# I want to get image-size

**URL:** <https://discourse.psychopy.org/t/i-want-to-get-image-size/23762>\
**Category:** Online experiments\
**Tags:** screen, images\
**Created:** [June 27, 2021, 9:54am UTC](https://discourse.psychopy.org/t/i-want-to-get-image-size/23762 "2021-06-27T09:54:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lumonden](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lumonden/32/16532_2.png) [@lumonden](https://discourse.psychopy.org/u/lumonden)\
**Post date:** [June 27, 2021, 9:54am UTC](https://discourse.psychopy.org/t/i-want-to-get-image-size/23762/1 "2021-06-27T09:54:45Z")

</div>

URL of experiment:

Description of the problem: Hi everyone. I want to know image size.

The experiment show a image, I want to know image-size.

I use image-component but, I can’t understand image-size.

Can you tell me the specifics of Psychopy’s image size settings?

Also, is there any way to output the image size in dpi to csv?

---

<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:** [June 27, 2021, 3:49pm UTC](https://discourse.psychopy.org/t/i-want-to-get-image-size/23762/2 "2021-06-27T15:49:46Z")

</div>

Didn’t you create the images? If so, you should know the original image sizes (in pixels). You can use this information to calculate the aspect ratio so you can present the image at the desired size in height units.

e.g. [aspectRatio\*sizeY,sizeY]

---

<div class="post-metadata">

**Author:** ![lumonden](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lumonden/32/16532_2.png) [@lumonden](https://discourse.psychopy.org/u/lumonden)\
**Post date:** [June 27, 2021, 11:56pm UTC](https://discourse.psychopy.org/t/i-want-to-get-image-size/23762/3 "2021-06-27T23:56:50Z")

</div>

Is image size define image/screen-solution?

ex: width = 0.5, height = 0.5, screen solution = 2560 \* 1440  
Is image solution 1280 \* 720?

---

<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:** [June 28, 2021, 6:00am UTC](https://discourse.psychopy.org/t/i-want-to-get-image-size/23762/4 "2021-06-28T06:00:48Z")

</div>

> [@lumonden](#):
>
> ex: width = 0.5, height = 0.5, screen solution = 2560 \* 1440  
> Is image solution 1280 \* 720?

In height units .5,.5 in your example would be 720x720. In norm units it would be 640x360.
