Hello,
first of all I want to thank everyone involved with it for ZenPhoto - I'm really liking it.
Yet to be brutally honest that's not why I registered to this forum. Rather, the reason for that was the following problem:
I'm coding my second custom theme now and would like to know whether there is an easy way to find out the width of images gained via getCustomSizedImageMaxSpace().
I figured that getSizeCustomImage might be the way to go, but it seems that I can only get it to scale the pics to either the width or height I specify - not into the maxspace. Let's say if the max size was 600x400 it would give back only values with 600px width, and ignore the 400px height - resulting in height values bigger than 400.
At first I thought I could work around this by passing a width to getSizeCustomImage for landspace formats and a height for portrait formats. But of course this doesn't work for narrow landscape shots - like say a 5x4 format.
I tried passing both the original size (via getSizeCustomImage), 0 and empty $size values to getSizeCustomImage with my desired max width / height as the second and third parameter but to no avail.
Am I missing out on something in here or is there just no way to do this with the template functions? I guess I could figure some workaround out by myself, but if there is an easy way to do this it would be great.
Thanks a lot,
Philip