> So, I gotta FORCE correct sizes and/or resize the images when they
> upload them. The client is just too dumb to get it right on their own.
>
> The site is running CFMX on a shared Linux server - so I can't add
> anything or set paths through the CF Admin or anything like that - and
> many of the custom tags I've already looked at need java libs and stuff.
> Whatever I do has to be local to just this one site.
>
> Advise?

As quick first line of defense you could detect image's size using 
JavaScript. Unfortunately this doesn't works anymore on more recent versions 
of Mozilla/Firefox, but it's fine for IE users:
http://www.massimocorner.com/validator/samples/image_upload.htm

Then there are a few CFCs around that can both read image's size and resize. 
My solution is available here:
http://www.olimpo.ch/tmt/cfc/tmt_img/

Since you are on Linux, read the "Configuring Headless Systems" notes on the 
url above.

----------------------------
Massimo Foti
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com
----------------------------


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250795
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to