Images presented with "visual.ImageStim" are occasionally jagged!

Hi,
I need some help with my experiment. I present stimuli with visual.ImageStim and find the images are occasionally jagged! How to solve this problem and present the image itself.

the normal image

the abnormal image

I hope you can help me. Thank you very much!

Looking forward to your reply!

Hi, can you try setting the your image to interpolate with “nearest”? You can find it in the Texture tab of your image component.

1 Like

Hi, thank you for your reply. I don’t know how to set interpolation to “nearest”? This is my code:


Looking forward to your reply!

Yes you would need to set interpolate=False

Thank you for your advice. I try it, but problems remain.
Stimulation images often have problems when the stimuli are very small, such as 15 pixels on a side.
For example:


some details:
Operating system: Windows 11
Psychopy : 2020.2.4

Hi, do you mind sharing your image with me so that I can try and replicate this issue on my end? And were you trying to change the orientation of this stimulus?

Ok. I can share my code with you, but I don’t know how to do that. Maybe through the mail?

You can just upload your files here

Could you also send over the image you were trying to present?

Hi, the image is created in the program. It’s actually an array. And here is an image created by the program.
IMAGE.zip (231 Bytes)

Hi, unfortunately I can’t replicate this problem on my end. Have you tried to run this task on another monitor?

Hi, I run this task on another monitor and find the same problem. Did you run my program without repeating this problem?