Hi, hope someone can help me here. I've successfully created a agent to pull metadata, posters and art from a web page however the array of images on the page that are to be used as posters and art are a mixture of both portrait and landscape images. Currently all images are added to both posters and art but ideally I would like the portrait images to belong to posters only and the landscape to art.
I have no control over the markup on the page and the image/image links dont have any width or height attributes.
Is there a way I can determine the orientation before I add them to the metadata? - I'm pretty new to python so not fully upto speed as to what my options are, or even if its possible. I tried importing PIL but thats another story that doesnt end too well.
Any help would be greatly appreciated.