I am having a problem with images that vary in size. I let the user upload images and then display it on a web page. The problem is that the images that the users submit are different sizes. Some look good while others look distorted. Currently I just use a fixed size like 200 x 150. If this is not a ColdFusion question I am sorry. Any Ideas? Thanks, JN
I know how to do it in php... Basically you mark down the image in width (if that needs to be constant) and get the factor and mark down the height proportionately.
I don't really now PHP very well and I am not sure the it is supported in the plan that I have with my webhost. Can't this be done in coldfusion?
There are a lot of pre-made custom tags and cfcs for resizing images. Its a common request so check with your webhost about what options they support: custom tag or cfc. They may even have something set up already. Here are two options, but there are many others. http://www.opensourcecf.com/imagecfc/ http://www.kolumbus.fi/~kr0626/cfx_openimage/
or just wait for CF8 & it's CFIMAGE tag! (all types of real time image manipulation & creation, including on-the-fly CAPTCHAs)