title: Python - Find out aspect ratio of image
body: <p>I'm writing a script that automatically lets me download images from a website and set them as my background. But I only want landscape/horizontal pictures, <strong>is there a way for python to see the aspect ratio of an image</strong> and then discard them based on whether it's horizontal or vertical? And would this be easier to do after downloading the pictures, or before using Selenium?</p>