How to get image size by script?

Avatar

26-02-2009

Hi,



I'm searching for any solution to get the height or width of a picture by script (Formcalc or JavaScript).

I need this to decide between pictures whether they are in horizontal or in vertical. For example, if a picture is horizontal the image field height should be 1,5in and if a picture is vertical the image field height should be changed into 3in by script.



Is there any suggestion?



Thanks and regards,



Matthias Maier