Monthly Archives: May 2007

imageResize (inline)

Can’t rely on the size of an uploaded image and don’t want to resize it?

This function takes the larger size of the width and height and applies a formula accordingly. Then gets the new value and applies the percentage, then rounds the value. It returns the new sizes in html image tag format so that you can plug this function inside an image tag.

Continue reading