I’m working on a simple image presentation experiment. However, all the images I received to display are quite different sizes. I’d like to get them to display as full screen as possible, with no cropping. That is, it will always scale until it hits a border (e.g. wide images will have extra borders only at the top, and high images will have borders on the sides).
How could I check the size of the image before loading it with ImageStim and only scale to the ratio of the screen size and image size on its longest dimension?
Thanks for the help and advice!