INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Aspect Ratio Expression Function  (Read 875 times)

Callithumpian

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 487
  • Subvert the Dominant Paradigm
Aspect Ratio Expression Function
« 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
Logged

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Aspect Ratio Expression Function
« Reply #1 on: November 02, 2007, 02:05:32 am »

No mathematical operations available yet with expressions  :'(

..but maybe one day :D
Logged
Pages: [1]   Go Up