INTERACT FORUM
More => Old Versions => Media Center 12 (Development Ended) => Topic started by: Callithumpian on November 01, 2007, 11:58:27 pm
-
Matt
While you're throwing expression functions about the place, is there a chance that a function or combination of functions to give the aspect ratio of photgraphs can be included?
It would need to return a number greater than 1 irrespective of whether the photo was in landscape or portrait format, so a check of width greater than height would be needed, then divide larger by smaller and round to 2 decimals.
So....
round(if([width]>[height], 1), divide([width], [height]), divide([height], [width]) ), 2)
= aspect ratio rounded to 2 decimal places
Can do?
Cheers
Mark
-
No mathematical operations available yet with expressions :'(
..but maybe one day :D