imageResizeAspectRatio(originalWidth, originalHeight, target)

Last updated February 22, 2006

author

Description:
This function will give you the properly resized dimensions of an image. In other words, you give it the original dimensions, the new maximum size, and the UDF returns the new size numbers while maintaining the aspect ratio.
This could be very handy to use with the ImageSize UDF already published on CFLib.org which returns an image's width and height.