Property #AspectRatio does not agree with ImageX and ImageY

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Property #AspectRatio does not agree with ImageX and ImageY

Post by klownboy »

Don, since you are currently in a thumbnail mindset, I see many cases for images where property("#AspectRatio", <curitem>) does not get it right. For example, an unaltered photo from a popular Canon EOS, the image width is 2592 and height is 3888 (those dimensions are correct as obtained by property("ImageX", <curitem>) and property("ImageY", <curitem>)), yet the aspect ration given is 3:2 instead of 2:3. In this particular case given the photo the orientation prop #245 is "" it's not "Rotated 90 or 270" like you might see in some cameras. I can provide you example photos if it helps. Another photo in landscape from the same camera is 3888x2592 and it's AspectRatio is also 3:2 which in this case is correct. Thanks.

Edit: I forgot to mention that property("#image.dimensions", <curitem>) also gets it wrong. Which is probably why property("#AspectRatio", <curitem>) is wrong. Whereas property("ImageX", <curitem>) and property("ImageY", <curitem>) is correct.

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Property #AspectRatio does not agree with ImageX and Ima

Post by klownboy »

Forget this one Don, it looks like we already touched upon this topic here... http://www.xyplorer.com/xyfc/viewtopic. ... tio#p91901 Thanks.

Post Reply