Really what you're needing is a crop function. You'd resize in one
direction, then crop in the other direction. I can't recall if tmt_cfc
has a crop function though.
Ryan Everhart wrote:
Hi Everyone,
I'm going try to explain this the best I can, but if I fail please ask
questions.
I'm working on a real estate site and using some CFC code to
automatically resize photos when the agents upload them in the admin
area. One thing I did not count on was that the agents would upload
vertical pictures (taller than they are wide). This is causing some
problems with my code.
Using the CFC code I am able to resize the photos by width of 400px,
which is good for the horizontal pictures, but it doesn't work well
for those vertical photos. The pictures are still too tall to fit
into my site.
Has anyone used tmt_img.cfc to resize photos and know how to handle
this, or does anyone else have any suggestions?
tmt_img.CFC
http://www.cfmentor.com/code/index.cfm?action=zipped&id=50
Thanks,
Ryan
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe:
http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
http://www.dfwcfug.org/form_MemberRegistration.cfm