How do I get the Aspect Ratio of a Thumbnail/Poster/Image
#1
Hi Guys,

I'm trying to find a way of getting the width and height of a thumbnail image of the current playing video ($INFO[Player.Art(thumb)] or through $INFO[Player.Art(poster)]).

Basically, I want to find out whether the width of the image is greater than or less than the height and if so, change the y-position of the image displayed on the screen. But i'm stuck as I can't see anything in the skinning wiki which will allow me to do so.

Would really appreciate it if someone with some ingenuity could tell me how I could achieve this. I'm stuck :|

Thank you Wink
Reply
#2
Not possible unfortunately. There is no way to do calculations in the skinning engine.
Reply
#3
Scrap that, I've found what I needed Big Grin - http://kodi.wiki/view/Aspect_Ratio

Funny how I end up finding my answer just after I ask for help. Thanks Jeroen for your help anyways. Wink
Reply
#4
(2015-02-12, 18:13)RogerThat_ Wrote: Scrap that, I've found what I needed Big Grin - http://kodi.wiki/view/Aspect_Ratio

Funny how I end up finding my answer just after I ask for help. Thanks Jeroen for your help anyways. Wink

It´s not really the answer to your problem. Scaling behaviour is a different topic than getting the width/height of an image.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply

Logout Mark Read Team Forum Stats Members Help
How do I get the Aspect Ratio of a Thumbnail/Poster/Image0