yep, using last night's build. still not working correctly.
here's a test gallery:
http://www.stanats.com/gal02/index.php?album=testalbum&image=07.jpg
look on the right for the number grid. the one on top uses my own functions, and the one on bottom, marked "MAXSPACE Version" uses the new functions. The images are supposed to max out at (120,100), but they don't.
The call I'm making is:
printCustomSizedImageThumbMaxSpace('',120, 100);
I've looked at the current code for the function and I haven't noodled all the way through it, but I think the sizing logic is faulty. I'm using this logic in my function:
if (getFullWidth()/getFullHeight() >= $width/$height)
/** then the image is relatively wider than the target size,
* so make it max width (height will be less than max) */
print(getCustomImageURL(null, $width));
else
/** then the image is relatively taller, so make it max height */
print(getCustomImageURL(null, null, $height));
This doesn't include the cases where $width or &height is not passed, but those simply fall into these same two categories. Obviously, the getCustomImageURL function can't be used by you guys in this situation since it doesn't deal with thumbs, but that's exactly why I'm waiting for this function.
Hope this helps!