You can check the image dimensions using <cfimage>
<cfimage source="#image_file#" name="thisimage">
thisimage.height is the height
thisimage.width is the width
Once you check the height/width, you can resize if the image is too large, or leave it alone if it's not.
Sorry i'm really new to cf and don't quite understand the "thisimage.height and thisimage.width". i looked at the livedocs online and it didn't have an example for it. Could you please explain?
Ok, let's say the user uploads the image to /home/user/www/uploads, and the filename is avatar.jpg
You can do this:
<cfset uploadfile = "/home/user/www/uploads/avatar.jpg">
<cfimage source="#uploadfile#" name="userimage">
<cfif userimage.width gt 500>
If the avatar is over 500px wide, it resizes it and puts it in the avatars folder (or wherever you want it to go). If not, it just moves it. The "userimage" in userimage.width is just the name="" from the first <cfimage> tag. It can be whatever you want, as long as it matches that name.
That did it. Tweaked it abit, but it worked.
Glad you got it working!