Closed thartbm closed 5 years ago
requires PIL library not sure if the lab's computers already have PIL -- they probably do --
I strongly doubt that requires PIL. PsychoPy has options for displaying images at various scales:
Psychopy already uses a version of PIL called pillow so it isn't really redundant to use it.
I just use it to find the aspect ratio of the image before creating the imagestim object.
I can modify it to create the object first and then find aspect ratio to resize from there but I feel like that would be slower then using the PIL module directly.
What do you think?
On Sun, Oct 21, 2018, 11:15 AM thartbm, notifications@github.com wrote:
I strongly doubt that requires PIL. PsychoPy has options for displaying images at various scales:
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/thartbm/PyVMEC/issues/70#issuecomment-431677224, or mute the thread https://github.com/notifications/unsubscribe-auth/AfTJWvHFewH1PcngYhFE3I6vDIqS6FYHks5unI-sgaJpZM4Xarfh .
Sounds good in principle. I'd like to check if there is not a simpler PsychoPy (or maybe numpy / scipy?) method that can be used to do this.
The simplest option is to create the stim objects without changing their size and then reading out the size before changing it.
Right now, the custom icons are squished / stretched into a square, but the expected behavior is that a non-square icon remains non-square. In the current set of example icons, this is most clearly seen in the soccer goal (target_2.png).