Coldfusion Image Resizer w/ tmt_img.cfc
More late night code obsession....
I have had Massimo's tmt_img.cfc at the root of my CF cms, dynamic cfGallery and other apps for quite a while.... but I hadn't ever set it up as a standalone process... until now.
http://mredesign.com/cfdev/UploaderMREdemo/index.cfm
This simple demo lets the user input the thumb and full size widths of their choice, and uploads the original file for safekeeping. Also, any spaces in the filename are replaced with hyphens to avoid troubles later on.
Another thing I have been wanting is dynamic paths... this whole thing runs on CGI variables that get and show the server path and the http url based on the location of the upload page (and a few set folder names, in relative locations). This means you can place it anywhere and it will 'know' where it is with no entry of server or http info.
tmt_img can also crop, get dimensions, and more... but this shows the basic function and it was fairly easy to set up, once I got the syntax right.
EDIT: Files are attached to this post. See the 'download' link below.
You will need a copy of tmt_img... get it here... then unzip my attachment and put the tmt_img file into the 'tags' directory, then upload the works to anwhere on your CF server. It *should* work. (Then again, it is *almost* 5 am, so anything is possible... )


Also, I attempted to replace both 'overwrite' functions with 'makeunique' so the files are diffrent, but no success, any ideas?
P.S. Thanks for an amazing script btw. :),
I am still trying to figure out why makeuniqe isn't working though, it seems to only like overwrite.
Thanks again for the script.
what was it?